Return to Snippet

Revision: 5751
at April 1, 2008 11:17 by Tate


Initial Code
<?php
function __autoload($class_name) {
  require_once $class_name.".php";
}
 
$bob = new bob();
$bob2 = new bob2();
 
?>

Initial URL

                                

Initial Description
bob.php and bob2.php are my 2 class files

Initial Title
__autoload in PHP

Initial Tags

                                

Initial Language
PHP