note 116109 added to language.oop5.constants

From: Date: Tue, 11 Nov 2014 01:27:47 +0000
Subject: note 116109 added to language.oop5.constants
Groups: php.notes 
Request: Send a blank email to php-notes+get-200867@lists.php.net to get a copy of this message
As of PHP 5.6 you can finally define constant using math expressions, like this one: <?php class MyTimer { const SEC_PER_DAY = 60 * 60 * 24; } ?> Me happy :) ---- Server IP: 72.52.91.14 Probable Submitter: 89.78.6.71 ---- Manual Page -- http://php.net/manual/en/language.oop5.constants.php Edit -- https://master.php.net/note/edit/116109 Del: integrated -- https://master.php.net/note/delete/116109/integrated Del: useless -- https://master.php.net/note/delete/116109/useless Del: bad code -- https://master.php.net/note/delete/116109/bad+code Del: spam -- https://master.php.net/note/delete/116109/spam Del: non-english -- https://master.php.net/note/delete/116109/non-english Del: in docs -- https://master.php.net/note/delete/116109/in+docs Del: other reasons-- https://master.php.net/note/delete/116109 Reject -- https://master.php.net/note/reject/116109 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#200867) next »