|
   |
|
|
Tutorial: The Basic "hello word" for PHP
Tutorial name: The basic "hello world" for starters You're experience: advanced Difficulty: anyone Time Taken: 30-120 seconds Plug-ins needed: none well, this is just plain old simple. there are a few methods to displaying html code with php, the echo and print functions are good examples. i personally use the echo function more often. Code: <?php //you start by defining that this is php code for you server to process echo"hello world"; //outputs hello world //now lets play around a bit echo"<br /> oi"; // we are outputing HTML, remember that this is not a textfile, you need to manually add lines. $greeting = "bonjour"; // we have defined the variable $greeting as bonjour echo $greeting; // this outputs the value of $greeting, which is bonjour. $greeting2="oi"; $greeting3="hello"; echo"$greeting1, $greeting2, and $greeting are all different ways of greeting someone"; //this echo command outputs: bonjour, oi, and hello are all different ways of greeting someone ?> A simple hello gone a little further. A Noobs World © 2007-2008
|
|
 |
|
No reactions yet.
Please login or sign up to rate this intel.
Please login or sign up to add a comment.
The copyright for this content entitled "Tutorial: The Basic "hello word" for PHP" has been specified by the contributor as:
All Rights Reserved
This content may not be copied, distributed or adapted by anyone under any circumstances.
|
 |
|
This intel was contributed by hotnoob
|
May, 2012
2008
January, February, March, April, May, June, July, August, September, October, November, December
2009
January, February, March, April, May, June, July, August, September, October, November, December
2010
January, February, March, April, May, June, July, August, September, October, November, December
2011
January, February, March, April, May, June, July, August, September, October, November, December
2012
January, February, March, April, May
|
|
Not a member yet?
Qondio is a powerful network for making it online. If you have a website to
promote, we can help.
Sign up and get in on the action.
|
|
Welcome to Qondio! Discover the awesome power this network can deliver by going to our About page. Or you could skip straight to the Sign Up form.
|
|