Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

namespace autoload php

Function __autoload($class)

{

require ("classes/". $class. ".php");

}


$first = new first();

echo "<br>";

$second = new second();
 
Source by phperrorcode.com #
 
PREVIOUS NEXT
Tagged: #namespace #autoload #php
ADD COMMENT
Topic
Name
1+5 =