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

How to convert a string to uppercase in php?

543


What is the use of preg_match in php?

532


What are the features of php?

555


What is difference between session and cookie in PHP?

519


The left association operator % is used in PHP for?

580






What is the main function of php?

528


What are include() and require() functions?

515


What does php do?

533


When a conditional statement is ended with an endif?

520


What is difference between echo and print in php?

496


How the values are ordered in an array?

571


Tell me what is use of in_array() function in php?

566


What are the benefits of composer?

531


Is variable name casesensitive in php?

549


Which software is best for php?

522