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 ?    72 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Tell us how to set cookies in php?

529


How to include a file code in different files in php?

508


What are variables in research examples?

560


So if md5() generates the most secure hash, why would you ever use the less secure crc32() and sha1()?

548


Explain what is the difference between session and cookie?

534






Explain why would we use === instead of ==?

494


What is session management php?

524


What is php date function?

561


What is difference between md5 and SHA256?

533


Is not null in php?

520


What is difference between post and put in rest?

508


What happens when submit button is clicked?

509


Tell me what are the encryption techniques in php?

493


Tell me what is the default session time in php?

541


Which is best framework for php?

557