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