PHP Objects Theory

I was thinking about Objects and how they are based on real life objects, and that everything could be programmed as an object.

Is it possible to have an entire web site entirely coded with objects, with the exception of the index file which would only load the parser, and then call the actual index page object.

Can objects control the flow and structure of the main program?

I am finding objects a little difficult to get my head around. :wink:

isn’t the beauty of php that you can go about a problem however you like?

Yes you can use php for an Object Oriented Program or OOP. Most CMS systems Like wordpress or drupal use this model.

Sponsor our Newsletter | Privacy Policy | Terms of Service