Tag Archives: magic method __autoload() in php

Magic method __autoload()

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.