What is PHP?

From what I already know about PHP, I know it’s a type of back end framework. That’s pretty much where my knowledge ends. PHP stands for “hypertext preprocessor,” and it’s a type of scripting language that can be embedded into HTML. But how is PHP different from HTML? The main difference between the two is HTML is a markup language, and PHP is a scripting language. A cool fact I learned is that PHP powers WordPress, Wikipedia, and Facebook. PHP is different from a front end framework like JavaScript in that it’s server-sided scripting, not client-sided scripting. What this means is that for server-sided scripting, the code is generated on the server and then sent to the client, not the other way around. Another perk to using PHP is that it can operate on all major operating systems, such as Linux, Unix variants such as HP-UX, Solaris, OpenBSD, Microsoft Windows, Mac OS X, and RISC OS. With PHP, users have the choice of using procedural programming or object oriented programming (OOP), or both of them together. Procedural programing tells the computer what to do step-by-step, while object oriented programming uses objects to solve problems. A good analogy from study.com says that objects are like people in that they have names (a property) and can perform certain actions, like walking (a method).

Source: http://php.net/manual/en/intro-whatis.php , http://study.com/academy/lesson/object-oriented-programming-vs-procedural-programming.html


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s