What is difference between $x and $$x

Answer Posted / psharma05

$x is a simple variable where $$x means value of $x becomes other variable.
eg.
$x="hello";
$$x="hi";
echo $hello;

output will be:
hi

Is This Answer Correct ?    11 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which character is used to match exactly one character?

556


How can we calculate the similarity between two strings?

588


Is it more secure to use cookies to trfer session ids?

525


Explain what are the three classes of errors that can occur in php?

530


Why is php so popular?

521






Is string php function?

578


What is static method php?

560


How to remove duplicate values from a PHP Array?

549


Can you define an argument as a reference type?

558


What is a php namespace?

523


How can you upload a file using php?

559


How to check your php installation?

514


What is singleton pattern in php?

490


What is the correct syntax of mail() function in php?

572


What does pear stand for?

542