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
What is instantiation?
Tell me how would you declare a function that receives one parameter name hello?
What does $_env means?
How to get useful error messages in php?
What is a query in a database?
What is the use of 'print' in php?
What is overloading and overriding in oop?
Is it possible multiple inheritance in php?
Tell me how a constant is defined in a php script?
What is the value for this auto incremented field user_pri_id?
What is the use of array_search() in php?
How to join multiple strings stored in an array into a single string?
What function do we use to find length of string, and length of array?
Tell me how to get the value of current session id?
Why do we use htaccess and where?