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

Answer Posted / darshit

$Message = "YOU";
$you= "Me";

echo $message //Output:- you
echo $$message //output :-Me

It means
$message is a variable and
$$Message is variable of variable

A variable of variable allows us to change the name of
variable dinamically

Is This Answer Correct ?    73 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which function(s) in PHP computes the difference of arrays?

583


Tell me which programming language does php resemble to?

512


Is php free to use?

544


What is escaping to php?

547


What is the current php version?

563






Is php 7.0 stable?

517


What is the best php framework 2018?

540


What are the method available in form submitting?

535


What is empty () in php?

532


Which function is used to strip whitespace?

450


What is the use of header() function in PHP? What the Limitation of HEADER()?

576


What is meant by pear in php? What is the purpose of it?

527


Can we use include ("xyz.php") two times in a php page "index.php"?

582


Why many companies are switching their current business language to php? Where php basically used?

509


How many types of array are there in php?

588