Re: conditional classes

From: Date: Sun, 24 May 2009 14:54:07 +0000
Subject: Re: conditional classes
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-293067@lists.php.net to get a copy of this message
ohh. sorry. what i intend to write is __autoload function... http://in.php.net/autoload moreover __autoload function is highly useful(especially when i hav one class per file) and i use it nearly every time i use a class. i dont think the scope of class definition 'included' within a function is limited to that function itself... PS: just tested - even if i hav the entire class definition inside the function, scope of class definition is not limited(the only condition being i should call the function before creating the object)

« previous php.general (#293067) next »