note 8943 added to Classes and Objects

From: Date: Sat, 07 Oct 2000 13:56:58 +0000
Subject: note 8943 added to Classes and Objects
Groups: php.notes 
Request: Send a blank email to php-notes+get-6204@lists.php.net to get a copy of this message
Static class methods are apparently supported in php v4.02. I don't know about earlier versions. Let's say you've got the following class. class test { function print() { print("it works.\n"); } } then you can access the method through test::print(); I don't know if this is documented somewhere, but I never read it and thought the static class methods were just not supported. Hope this helps. http://www.php.net/manual/language.oop.php

« previous php.notes (#6204) next »