To print "Hello, World!" in PHP, you can use the echo
or print
statement. Here's how:
main.php120 chars8 lines
Both echo
and print
statements are used to output data to the screen. However, echo
is more commonly used because it's slightly faster and does not return a value, while print
returns a value of 1 after it executes.
gistlibby LogSnag