Home »
MCQs »
PHP MCQs
There is a variable 'name' that contains the name of a person, which is/are the correct echo statement(s) to print the 'name' suffix with 'Hello'?
27. There is a variable "name" that contains the name of a person, which is/are the correct echo statement(s) to print the "name" suffix with "Hello".
- echo "Hello $name";
- echo "Hello " . $name;
- echo ("Hello $name");
- All of the above
Answer: D) All of the above
Explanation:
All of the above statements can be used to print the name suffix with "Hello".