You are here: Re: [PHP] How to call a function from $classname « PHP « IT news, forums, messages
Re: [PHP] How to call a function from $classname

Posted by Dan Joseph on 03/15/05 17:44

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация