ghacks Technology News

How echo works in PHP

The most basic command, and probably the first you’ll learn when taking a look at PHP is “echo”. The first example in many books and online tutorials is the following. Create a file, give it an extension of “.php”, upload it to your server, and edit it like so:
<?php
echo ‘Hello World’;
?>
I hate Hello World examples, [...]

Tags: , , , ,
Categories: Web Development

© 2005-2009 Ghacks.net. All Rights Reserved. Privacy Policy - About Us