PHP Tutorials

We have PHP tutorials ranging from beginner to advanced. Get an overview of language features and learn the basics like setting up PHP, form validation, database interaction, and how to create simple scripts like a blog or a login page. We also cover more advanced topics like OOP, framework development, and Ajax.

 
  • Procedural vs. Object-Oriented Programming (OOP)

    Having trouble making the leap from procedural to object-oriented programming (OOP)? In this tutorial, I'll explain the difference between the two styles of programming and give real-world examples on how and why you might use each. This tutorial isn't language-specific and I won't use any code examples, but by the end of it, I think you'll have a better understanding of object-oriented programming and how you can apply it in your own code projects.

    If you're just starting out, chances are that you are programming in a procedural manner. In a way, procedural programming could also be called linear programming. One thing happens and then the next. Code is executed from the top of the file to the bottom.

    OOP isn't as linear as procedural programming. Code is often broken up and distributed across multiple files, each one with a single purpose. OOP is also more abstract than procedural programming because it looks for patterns and reusability. The same code can be loaded and executed many times to accomplish a task without having to retype it.

    Get A Crash Course On OOP
 

Copyright 2011 Virtuosi Media Inc.