note 117926 added to function.ini-get

From: Date: Wed, 02 Sep 2015 19:52:30 +0000
Subject: note 117926 added to function.ini-get
Groups: php.notes 
Request: Send a blank email to php-notes+get-203581@lists.php.net to get a copy of this message
In a similar vein, converting flags to booleans proper: <?php function return_boolean($val) { static $map = array ('on' => true, 'true' => true, 'off' => false, 'false' => false); return @($map[strtolower($val)] ?: (bool)$val); } ?> If you're using PHP >= 7, consider replacing ?: with ?? and removing the @ silencer. ---- Server IP: 72.52.91.14 Probable Submitter: 98.26.60.50 ---- Manual Page -- http://php.net/manual/en/function.ini-get.php Edit -- https://master.php.net/note/edit/117926 Del: integrated -- https://master.php.net/note/delete/117926/integrated Del: useless -- https://master.php.net/note/delete/117926/useless Del: bad code -- https://master.php.net/note/delete/117926/bad+code Del: spam -- https://master.php.net/note/delete/117926/spam Del: non-english -- https://master.php.net/note/delete/117926/non-english Del: in docs -- https://master.php.net/note/delete/117926/in+docs Del: other reasons-- https://master.php.net/note/delete/117926 Reject -- https://master.php.net/note/reject/117926 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#203581) next »