note 126694 added to function.strval
| From: | fabrice at vignals dot com | Date: | Fri, 17 Dec 2021 22:01:24 +0000 |
| Subject: | note 126694 added to function.strval | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-217386@lists.php.net to get a copy of this message | ||
My logic is stress.
bolean is true OR false;
<?= strval( true); ?> //output: 1
You must use:
<?= var_export( true ) ?> //output: true
----
Server IP: 45.112.84.4
Probable Submitter: 45.112.85.242 (proxied: 2a01:e0a:58a:bf80:8178:1b03:7f91:8a72)
----
Manual Page -- https://php.net/manual/en/function.strval.php
Edit -- https://main.php.net/note/edit/126694
Del: integrated -- https://main.php.net/note/delete/126694/integrated
Del: useless -- https://main.php.net/note/delete/126694/useless
Del: bad code -- https://main.php.net/note/delete/126694/bad+code
Del: spam -- https://main.php.net/note/delete/126694/spam
Del: non-english -- https://main.php.net/note/delete/126694/non-english
Del: in docs -- https://main.php.net/note/delete/126694/in+docs
Del: other reasons-- https://main.php.net/note/delete/126694
Reject -- https://main.php.net/note/reject/126694
Search -- https://main.php.net/manage/user-notes.php