You are here: static functions w/ PHP 4? « PHP « IT news, forums, messages
static functions w/ PHP 4?

Posted by Michael B Allen on 12/09/05 21:48

Is there any way to have static functions and members of an Object w/ PHP 4.3? Like:

class Auth {
static var error;

static function authenticate() {
...
}
}

Auth::authenticate();

?

The documentation suggests this is possible but I can't seem to make it work. Is this behavior specific to PHP 5?

Thanks,
Mike

 

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

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