What is difference between $x and $$x
Answer Posted / chinuku
$var is a variable and $$variable is a Reference or Dynamic
variable
ex:$var="test";
$test="php";
<?php
echo $var;
echo $$var;
?>
ans
$var=test;
$$var=php;
Is This Answer Correct ? | 22 Yes | 4 No |
Post New Answer View All Answers
Does php pass arrays by reference?
What are default session time and path?
Why use static methods php?
What is difference between html and php?
How long do php sessions last?
How would you determine the size of a file in php?
Which is the best web server?
What is pdo in php why use?
Is php pass by reference or value?
Which is not a php magic constant?
What advance thing in php7?
How a constant is defined in a php script?
How to call javascript function in php without any event?
How cookies are transported from browsers to servers?
What does isset() function?