What is the difference between $message and $$message ?
Answer Posted / prasad
$message is variable and $$message is variable variable.
$message="hello";
$$message="world";
echo $hello; // prints world
echo ${$message} //prints world
variable variable cant be used in php superglobalarray. and
cant use in functions and within classes
| Is This Answer Correct ? | 25 Yes | 6 No |
Post New Answer View All Answers
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
Is php required for wordpress?
Why should I learn php?
What is rest api in php?
Does jwt protect against csrf?
What is the best php framework 2018?
What are the data types in php?
Does php use html?
How many types of session are there?
Explain me what are the differences between mysql_fetch_array(), mysql_fetch_object(), mysql_fetch_row()?
Explain some of the php string functions?
How to select a database in php?
Explain some most commonly use string functions in php?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
Declare a new variable in php equal to the number 3;