Re: How to call a function from $classname

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

 



> What do I have to do to call a function from $classname?
> 
> Like: $classname->test( );

Two methods:

First:

$classname = new ClassName();
$classname->test();

Second:

ClassName::test();

-- 
-Dan Joseph

"Build a man a fire, and he will be warm for the rest of the day.
Light a man on fire, and will be warm for the rest of his life."

-- 
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