PHP Classes

File: include/autoload.php

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple OOP PHP Calculator   include/autoload.php   Download  
File: include/autoload.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Simple OOP PHP Calculator
Perform simple math operations between two numbers
Author: By
Last change:
Date: 7 months ago
Size: 246 bytes
 

Contents

Class file image Download
<?php
  spl_autoload_register
("myautoload");

  function
myautoload($class)
  {
   
$path = "class/";
   
$classname = $class;
   
$extention = ".php";
   
$fullpath = $path.$classname.$extention;

    include
$fullpath;
  }


 
?>