Peerfectionist
{♥}
Printing Hello World in PHP {1}
This is one of the most basic programs you can write in PHP. You will, however, find that echo is used in even the most advanced scripts; especially for creating dynamic web (HTML) pages.
Code

<?php echo'Hello, world!'; ?>

Output

Hello, world!

accepted 100%
325 views
Posted 2015-01-01

Courtney {1}
4 snippets
Joined 2015-01-01
Hello! I'm from Toronto and programming is what I do. I've used C, PHP, C#, Java, JavaScript, and a few scripting and pseudo programming languages. Lately I've been learning the power of regex. I created Peerfectionist to be a user-centric code sharing site that promotes quality and pride in one's work. I will continue to work hard developing this site over the coming years.

Comments (1)
Courtney {1} on 2015-01-01
Note that the "print" command can also be used. It behaves more like a function.

Log in to comment!