note 112631 added to function.json-decode

From: Date: Sat, 06 Jul 2013 09:40:13 +0000
Subject: note 112631 added to function.json-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-195476@lists.php.net to get a copy of this message
If you store your json-string in an utf8-file and read it with file_get_contents, please make sure to strip leading BOM (byte order mark) before decoding it with json_decode. Otherwise json_decode will fail creating an associative array. Instead it will return your data as a string. ---- Server IP: 69.147.83.199 Probable Submitter: 188.110.60.123 ---- Manual Page -- http://php.net/manual/en/function.json-decode.php Edit -- https://master.php.net/note/edit/112631 Del: integrated -- https://master.php.net/note/delete/112631/integrated Del: useless -- https://master.php.net/note/delete/112631/useless Del: bad code -- https://master.php.net/note/delete/112631/bad+code Del: spam -- https://master.php.net/note/delete/112631/spam Del: non-english -- https://master.php.net/note/delete/112631/non-english Del: in docs -- https://master.php.net/note/delete/112631/in+docs Del: other reasons-- https://master.php.net/note/delete/112631 Reject -- https://master.php.net/note/reject/112631 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195476) next »