Write a program to print two variables in single echo

Description:
Write a program to print 2 php variables using single echo statement.

Conditions:

  • First variable have text “Good Morning.”
  • Second variable have text “Have a nice day!”
  • Your output should be “Good morning. Have a nice day!”
  • You are allowed to use only one echo statement in this program.

Click to View Solution/Program

Output:

  Good Morning. Have a nice day!