Custom Search

Database Class in PHP5

In PHP5 due to Object Oriented Concepts, the database connection to MySql will be using Object Oriented concept. This tutorial will guide you creating an database class that will connect to Mysql database and retrieve records from them. This tutorial does not cover exception handling in case of any database connection error as will have […]

Singleton Class in PHP 5

With OOPS in PHP 5 the whole bunch of Object Oriented Design Pattern will now come into the PHP 5 programming. The most famous and commonly used is Singleton Class. The main advantage of this Pattern that is allows only one instance of an object to be used across the web application. This pattern is […]

Exploring Magic Methods in PHP 5

With PHP 5 Object Oriented Programming seems to becoming a reality in PHP but we all know that in PHP a variable can take any form depending on the data passed to it. Also PHP automatically creates variable and assigns values to it even is the variables are not defined. But in Object Oriented Programming […]

PHP 5 Tutorial - __clone Magic Method

In PHP 5 when you assign one object to another object creates a reference copy and does not create duplicate copy. This would create a big mess as all the object will share the same memory defined for the object. To counter this PHP 5 has introduced clone method which creates an duplicate copy of […]

PHP 5 Tutorial - __toString() Magic Method

This tutorial will guide you through the __toString() Magic Method. The __toString() Magic method in PHP5 get called while trying to print or echo the class objects. This method can be used print all the methods and attributes defined for the class at runtime for debugging. Also this method can be used to give error […]

PHP 5 Tutorial - Parsing XML in PHP 5 using SimpleXML

PHP5 has come up lot of improvement when it comes to XML parsing as compared to parsing XML in PHP4. PHP5 has come up with a new function called SimpleXML for parsing XML files. This article will guide the PHP programmers on how to use the SimpleXML function in PHP5.

Bookmark It

Hide Sites

PHP 5 Tutorial - Not Pure Object Oriented Programming Approach

PHP development team has come up with great improvement in PHP5, one such feature is the introduction of improved Object Oriented Concept in PHP5, But it lacks the pure Object Oriented Programming approach. In this article i will be discussing few bugs that exists in the OOPS implementation in PHP5 and the main culprit behind […]

PHP 5 Tutorial - __autoload Magic Method

This tutorial will guide you through the __autoload() Magic Method. The __autoload() magic method of PHP5 get automatically called whenever you try to load an object of class which resides in separate file and you have not included those files using include,require and include_once. It is recommended to use the filename as that of the […]

PHP 5 Tutorial - __unset() Magic Method

This tutorial will guide you through the __unset() Magic Method. The __unset() magic method of PHP5 is called whenever unset function of PHP is called to clear an undeclared data member. With the help of this method we can check for the undeclared variables in the code. We can also set appropriate error message while […]

PHP 5 Tutorial - __isset() Magic Method

This tutorial will guide you through the __isset() Magic Method. The __isset() magic method in PHP5 is called whenever isset function of PHP is called to check for undeclared data member. With the help of this method we can check for the undeclared variables in the code. We can also set appropriate error message […]