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
How to create a web form?
What is action hooks and filter hooks?
What is php array function?
Tell me what is the default session time in php?
What is $this in php?
Explain me what is the difference between $_files['userfile']['name'] and $_files['userfile']['tmp_name']?
Write a php function to convert all null values to blank?
How would you determine the size of a file in php?
Tell me what does the scope of variables means?
What is the difference between null and empty?
What is string function sql?
How to open standard output as a file handle?
What is the meaning of a persistent cookie?
What is the main difference between asp net and php?
What is php session and how it works?