note 29573 modified in function.func-get-args by aidan

From: Date: Fri, 04 Jun 2004 09:33:05 +0000
Subject: note 29573 modified in function.func-get-args by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70786@lists.php.net to get a copy of this message
I used this function make my classload function,look: <?php $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"); } } } ?> --was-- 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

« previous php.notes (#70786) next »