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

Answer Posted / vikram

$message="hello";
$hello="world";
echo $$message;
// will print "world"..this concept is called "variable of
variables"...

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain what is smarty?

561


What are include() and require() functions?

515


What is a variable cost example?

551


Tell me which function gives us the number of affected entries by a query?

519


Where to put php files in apache server?

505






What is difference between compile time and run time polymorphism?

521


What is the best php framework 2018?

530


How can I load data from a text file into a table?

562


What does the initials of php stand for?

533


How to execute an sql query?

511


Do you know what is php?

550


What is the use of strip_tags() method?

549


What is mvc in php?

532


How to execute an sql query? How to fetch its result?

576


Explain what does the unset() function means?

574