There are two ways to get the output in PHP:
The basic difference between echo and print: echo has no return value while print has a return value of 1 so it can be used in expressions.
The echo statement may be used with or without parentheses: echo or echo().
echo "Hello world!
echo "I'm learning a PHP Programming!
The print statement may be used with or without parentheses: print or print().
print "Hello world!
print "I'm learning PHP Programming!";