note 58329 deleted from language.variables by mazzanet

From: Date: Mon, 31 Oct 2005 20:19:15 +0000
Subject: note 58329 deleted from language.variables by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-97895@lists.php.net to get a copy of this message
Note Submitter: stuart at deadbodiesdontdrown dot com ---- i made this to load all my classes dynamically and create a default copy of each one. if($return=="class"){ $massclass=massinclude($folder,$prefix,$ext,$return); // this gathers all the files that are named in the class structure i have $massclassNum=count($massclass); $i=0; while($i<$massclassNum){ $thisclass=prefix($massclass[$i]); // i added "sixletterwords_" as a prefix. if(class_exists($massclass[$i])){ ${$thisclass}=new {$massclass[$i]}; } ++$i; } } this ofcourse is only a snippet of code. but what i did was looped through all the class names, and created a var for each, but added a prefix to them and stuff. maybe this'll help. it wasn't hard.

« previous php.notes (#97895) next »