Results for tutorial
PHP Echo Guide
Posted June 29th, 2009 by bammisSince this is one of my original blogs on this website I have to go with the good old “Hello World!” post. I plan to post some of my PHP expertise on this page and hopefully help out some new coders.
One of the most important things a majority Coders need to learn is how to show results to the window. In PHP the easiest way to do this is by using the echo function. To be correct, echo is not actually a function, it is a language construct built into PHP. Echo can be called like any other function. For example if you wanted to write the words “hello world” to the browser your php code might look like this:
<?php echo(”hello wolrd”);?>
Since echo is a language construct it doesn't reguire the () that functions do. So this would also work:
<?php echo “hello world”;?>
That's it for the echo construct. I will be talking more about PHP in a later post. If you would like to learn more today take a look at PHP SQL. It's one of my favorite sites and I bet you will find it very helpful.
