What is the difference between $message and $$message ?

Answer Posted / keshab

$test = "example";
$temp = "test";

echo $temp // output is "test";
echo $$temp// output is "example";

thanks

Is This Answer Correct ?    1 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to replace a substring in a given string?

553


What type of headers that PHP supports?

617


Which is the best php framework for a beginner?

526


Is python better than php?

503


what is mean by portal

1462






What is php routing?

512


How can you propagate a session id?

537


How do you execute a php script from the command line?

525


How to open a file for writing?

563


What is php rest api?

532


Tell me how would you declare a function that receives one parameter name hello?

534


What are encryption functions in php?

544


Where php language is used?

526


What is super keyword in c++?

586


How do I update php?

574