Home »
MCQs »
PHP MCQs
There is a variable 'name' that contains the name of a person, which is/are the correct print statement(s) to print the 'name' suffix with 'Hello'?
29. There is a variable "name" that contains the name of a person, which is/are the correct print statement(s) to print the "name" suffix with "Hello".
- print "Hello $name";
- print "Hello " . $name;
- print ("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".