Announcement

Collapse
No announcement yet.

Object Oriented Programming in PHP

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Object Oriented Programming in PHP

    Introduction
    Object Oriented Programming is abbreviated as OOP. In OOP, the word, Class, means a set of variables and functions that would work together. In OOP, and in simple terms, the word, Object, is the class, where the variables have been assigned values and the class is actually usable. Object Oriented Programming is programming, whereby, instead of using variables and functions separately, variables and functions are grouped and used as a group. Object oriented programming is slowly, but steadily increasing in popularity. In this article, I introduce you to a tutorial series that will teach you PHP Object Oriented Programming.

    Prerequisite
    You need to have basic knowledge in PHP before beginning the tutorials. There are a few other things you need to have learned. You will be told about that as you begin the tutorials.

    Procedural Programming and Object Oriented programming
    Procedural programming is programming that consists of variables and functions that are independent. It would have constructs such as the if-construct. It would also have an array. In that kind of programming, execution generally begins from top to bottom. In strict object oriented programming, you have classes and objects and constructs (e.g. the if-construct). Any array in the program is in the form of an object. In strict OOP, a program is the interaction of objects.

    PHP has the important features for you to write a script as object oriented programming. In theory, you can actually choose to write a PHP script (program) as a procedural code or as an OOP code. In practice you have to use a combination of both and as time goes on (future), the ration of OOP should be increasing, as this is the popular trend, which in my opinion, you just have to respect.

    OOP is something you must make an effort to learn. Do not say you will learn the procedural part of a language and leave out the OOP side. Some predefined features of the language can only be found in the OOP side. Also, OOP is slowly and steadily increasing in popularity. It is said that some bosses would not employ you if you cannot code in OOP.

    The tutorials have been prepared in a step-by-step fashion. The code samples are well formatted, with good indentation. There is no missing special character, as you would find in other sites. The links to the different parts of the series are easily accessible. Above all, the tutorials are free. Click the following link to start the series:

    Tutorials for Object Oriented Programming in PHP

    Chrys
Working...
X