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

What is foreach loop in php?

531


Is php is dying?

501


Is not null in php?

525


What are the special characters you need to escape in single-quoted stings?

509


How is php different from other languages?

477






What is difference between readonly and constant?

503


Write a program using while loop in php?

569


What are the differences between require and include?

567


Tell us how to set cookies in php?

533


What is difference between print_r and echo in php?

496


What is cURL in PHP?

546


What is move_uploaded_file in php?

549


Tools used for drawing er diagrams?

549


How to make database connection in php?

535


Is php used in 2019?

531