-2
$check=$$_GET[u];

if($_GET[user] && $_GET[user]==$check)

I don't under stand about $check=$$_GET[u]; Why that used double $ ?? so what is value of $check u guess?

smassey
  • 5,479
  • 20
  • 34
M Doublack
  • 25
  • 3

2 Answers2

0

It takes the value of one variable and treats it as name of second variable.

Variable variables This can help you in understanding it with an example.

bɪˈɡɪnə
  • 1,057
  • 1
  • 18
  • 44
0

The double $ makes a variable with a name equal to the value of the original variable. Example

$name = "steve";

$$name = "jobs";

print ($steve); // The output is: jobs

What we've done is that we made a new variable, and the new variables name was the value of $name. We assigned "jobs" to the variable by the name of $name's value.