note 123846 added to function.bcsub
| From: | charles dot adrian dot wood at gmail dot com | Date: | Tue, 14 May 2019 14:52:56 +0000 |
| Subject: | note 123846 added to function.bcsub | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-211040@lists.php.net to get a copy of this message | ||
Please note that bcsub will fail in non-obvious ways if it's fed something that cannot be
converted to a number. For instance:
bcsub('yes', 'no') === '0'
Yes, if you put garbage in, you get garbage out. Just don't expect bcsub to throw an error when
you feed it an entirely non-numeric value.
----
Server IP: 208.43.231.9
Probable Submitter: 82.199.157.34 (proxied: 216.15.95.62)
----
Manual Page -- http://php.net/manual/en/function.bcsub.php
Edit -- https://master.php.net/note/edit/123846
Del: integrated -- https://master.php.net/note/delete/123846/integrated
Del: useless -- https://master.php.net/note/delete/123846/useless
Del: bad code -- https://master.php.net/note/delete/123846/bad+code
Del: spam -- https://master.php.net/note/delete/123846/spam
Del: non-english -- https://master.php.net/note/delete/123846/non-english
Del: in docs -- https://master.php.net/note/delete/123846/in+docs
Del: other reasons-- https://master.php.net/note/delete/123846
Reject -- https://master.php.net/note/reject/123846
Search -- https://master.php.net/manage/user-notes.php