Magic method __autoload()

By | May 17, 2014

This function will allow to add a class file without including the file.

__autoload() function will call automatically while creating the object.

it will automatically include all classes while creating the objects

See the example

Note:for this we have to give filename and class name as same. otherwise it will not work.