Re: conditional classes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux