note 85908 added to language.operators.arithmetic
| From: | olilo at osu1 dot php dot net | Date: | Wed, 24 Sep 2008 08:34:41 +0000 |
| Subject: | note 85908 added to language.operators.arithmetic | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-144661@lists.php.net to get a copy of this message | ||
It should be noted that every string will be converted to 0.
<?php
/* tested under PHP 5.2.3-1ubuntu6 (cli) (built: Oct 4 2007 23:35:54) */
echo "foo" * "bar";
echo "foo" / "bar";
?>
Results:
0
Warning: Division by zero in /tmp/test.php on line 3
----
Server IP: 195.207.10.20
Probable Submitter: 91.179.61.193
----
Manual Page -- http://www.php.net/manual/en/language.operators.arithmetic.php
Edit -- https://master.php.net/note/edit/85908
Del: integrated -- https://master.php.net/note/delete/85908/integrated
Del: useless -- https://master.php.net/note/delete/85908/useless
Del: bad code -- https://master.php.net/note/delete/85908/bad+code
Del: spam -- https://master.php.net/note/delete/85908/spam
Del: non-english -- https://master.php.net/note/delete/85908/non-english
Del: in docs -- https://master.php.net/note/delete/85908/in+docs
Del: other reasons-- https://master.php.net/note/delete/85908
Reject -- https://master.php.net/note/reject/85908
Search -- https://master.php.net/manage/user-notes.php