note 124657 added to function.boolval
| From: | uasenior at gmail dot com | Date: | Tue, 28 Jan 2020 20:02:02 +0000 |
| Subject: | note 124657 added to function.boolval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-213970@lists.php.net to get a copy of this message | ||
<?
// Some way to print boolean value as string
$b = true;
echo ['false', 'true'][$b];
?>
----
Server IP: 45.112.84.4
Probable Submitter: 185.85.3.172 (proxied: 178.158.254.235)
----
Manual Page -- http://php.net/manual/en/function.boolval.php
Edit -- https://master.php.net/note/edit/124657
Del: integrated -- https://master.php.net/note/delete/124657/integrated
Del: useless -- https://master.php.net/note/delete/124657/useless
Del: bad code -- https://master.php.net/note/delete/124657/bad+code
Del: spam -- https://master.php.net/note/delete/124657/spam
Del: non-english -- https://master.php.net/note/delete/124657/non-english
Del: in docs -- https://master.php.net/note/delete/124657/in+docs
Del: other reasons-- https://master.php.net/note/delete/124657
Reject -- https://master.php.net/note/reject/124657
Search -- https://master.php.net/manage/user-notes.php