note 106802 added to function.json-encode

From: Date: Wed, 07 Dec 2011 07:30:48 +0000
Subject: note 106802 added to function.json-encode
Groups: php.notes 
Request: Send a blank email to php-notes+get-184971@lists.php.net to get a copy of this message
In repsonse to bohwaz about JSON_NUMERIC_CHECK in reference to +33123456789. Although the PHP documentation does not list the unary "+" operator, you must assume it supports all algebraic notation. To test the unary "+" operator, try this use case: <?php $a = +5; echo $a; // output: 5 ?> If PHP didn't support the unary "+" operator, then the binary operator must be applied in this case and you'd get a syntax error. ---- Server IP: 208.69.120.55 Probable Submitter: 66.35.53.128 ---- Manual Page -- http://www.php.net/manual/en/function.json-encode.php Edit -- https://master.php.net/note/edit/106802 Del: integrated -- https://master.php.net/note/delete/106802/integrated Del: useless -- https://master.php.net/note/delete/106802/useless Del: bad code -- https://master.php.net/note/delete/106802/bad+code Del: spam -- https://master.php.net/note/delete/106802/spam Del: non-english -- https://master.php.net/note/delete/106802/non-english Del: in docs -- https://master.php.net/note/delete/106802/in+docs Del: other reasons-- https://master.php.net/note/delete/106802 Reject -- https://master.php.net/note/reject/106802 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#184971) next »