programming faqs interview questions tech technical educational freshers guide preparation interviews hr telephonic
try another color:
try another fontsize: 60% 70% 80% 90%
ProgrammingFAQs

how do i program "hello world" in php?

Average: 5 (1 vote)

Here is the program you can

Here is the program
you can browse the tutorials in w3schools.com
<?php
echo "hello world";
?>

echo and print statements are used to print the output on the browser, and each line in php should be terminated with semi colon (;)

<?php ?> , <? ?>, <?= ?> these are the php tags to write the php code, any php code should be between any one of above tags, by default <?php ?> is enabled, if you want to enable other tags also, change php.ini settings