note 29572 added to function.func-get-args
| From: | avenger@php.net | Date: | Tue, 18 Feb 2003 01:31:44 +0000 |
| Subject: | note 29572 added to function.func-get-args | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-44122@lists.php.net to get a copy of this message | ||
I used this function make my classload function,look:
$classPath = "class/";
function loadclass() {
global $classPath;
$args = func_get_args();
foreach($args as $className) {
$className = strtolower($className);
if (file_exists("$classPath$className.php")) {
include_once("$classPath$className.php");
}
}
}
--
http://www.php.net/manual/en/function.func-get-args.php
http://master.php.net/manage/user-notes.php?action=edit+29572
http://master.php.net/manage/user-notes.php?action=delete+29572
http://master.php.net/manage/user-notes.php?action=reject+29572