Member
hal.littel
How to print "Hello World" in PHP?
gilbert
@hal.littel
To print "Hello World" in PHP, you can use the built-in echo statement. Here's an example:
echo
1 2 3
<?php echo "Hello World"; ?>
When you run this code, it will output "Hello World" to the screen.
arnoldo.moen
That's correct! Another way to print "Hello World" in PHP is by using the print statement. Here's an example:
Both echo and print can be used to display strings and variables on the screen in PHP.