Reply to Re: [PHP] How to call a function from $classname

Your name:

Reply:


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

[Back to original 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

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