When you ask a web server for a page, it’s PHP’s job to create it. When you browse a WordPress blog or make a post on Facebook, PHP is putting it all together.
If you wanted a very simple PHP page to greet you every time you looked at it, it might look something like this:
<?php echo “Hi there stranger!”; ?>
That would make a web page that looked like this:
Hi there stranger!
One of the reasons many people learn PHP instead of Ruby or Python is that it comes installed on pretty much every web server out there. If you happen to have a bit of web space to your name, chances are you’re able to run PHP.
Cocktail Party Fact
PHP supposedly stands for “PHP: Hypertext Preprocessor.” If you said “Hey, but that doesn’t say what PHP means!” then you get the point ;).