note 92142 added to language.types.boolean

From: Date: Fri, 10 Jul 2009 14:07:03 +0000
Subject: note 92142 added to language.types.boolean
Groups: php.notes 
Request: Send a blank email to php-notes+get-158167@lists.php.net to get a copy of this message
On my PHP Version 5.2.6-3ubuntu4.1, this code: <?php error_reporting(E_ALL); ini_set('display_errors', 1); define('TRUE', FALSE); var_dump(TRUE); ?> gives boolean false It also works with "True", the only thing that throws an error is when trying to redefine "true" (no caps). ---- Server IP: 69.147.83.197 Probable Submitter: 86.105.210.112 ---- Manual Page -- http://www.php.net/manual/en/language.types.boolean.php Edit -- https://master.php.net/note/edit/92142 Del: integrated -- https://master.php.net/note/delete/92142/integrated Del: useless -- https://master.php.net/note/delete/92142/useless Del: bad code -- https://master.php.net/note/delete/92142/bad+code Del: spam -- https://master.php.net/note/delete/92142/spam Del: non-english -- https://master.php.net/note/delete/92142/non-english Del: in docs -- https://master.php.net/note/delete/92142/in+docs Del: other reasons-- https://master.php.net/note/delete/92142 Reject -- https://master.php.net/note/reject/92142 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#158167) next »