note 46434 added to language.oop5.constants

From: Date: Mon, 11 Oct 2004 15:38:25 +0000
Subject: note 46434 added to language.oop5.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-78351@lists.php.net to get a copy of this message
To Alexandre: I am not sure about the later versions but afaik, static cannot be prefixed to class as of PHP5.0.0. Just changing your example a lil bit: <?php abstract class Booleans { const On = true; const Off = false; const Yes = true; const No = false; } ?> ---- Manual Page -- http://www.php.net/manual/en/language.oop5.constants.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+46434 Delete -- http://master.php.net/manage/user-notes.php?action=delete+46434&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+46434&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#78351) next »