Gistlib Logo

gistlib

print "hello, world" in php

To print "Hello, world" in PHP, simply use the echo statement followed by the string you want to print. Here's an example:

main.php
<?php
echo "Hello, world";
?>
30 chars
4 lines

This will output:

main.php
Hello, world
13 chars
2 lines

similar php code snippets

print "hello, world" in php
remove an element from the beginning of an array in php
find the index of an element in an array in php
insert an element into an array at a specific index in php
reverse an array in php
remove an element from the end of an array in php
remove an element from the middle of an array in php
add an element to the end of an array in php
get first day of this week in php
add an element to the beginning of an array in php

related categories

php
programming
web development
server-side scripting

gistlibby LogSnag