
In PHP, if we need to use the functions of class file, to load the class file, we usually use include/include_once or require/require_once functions. But the easier way is to use the inbuild function __autoload(). For demonstration define the class files as needed. Example is given below. class MyClass1{ function myfunction(){ echo "Function inside MyClass1"; } } Save the file as MyClass.php…
© 2010 Created by Shakeel Shrestha on Ning. Create a Ning Network!