note 121987 added to function.json-decode

From: Date: Wed, 06 Dec 2017 14:11:35 +0000
Subject: note 121987 added to function.json-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-209323@lists.php.net to get a copy of this message
string2array($str) $arr=json_decode('["fileno",["uid","uname"],"topingid",["touid",[1,2,[3,4]],"touname"]]'); print_r($arr); echo json_last_error(); output: Array ( [0] => fileno [1] => Array ( [0] => uid [1] => uname ) [2] => topingid [3] => Array ( [0] => touid [1] => Array ( [0] => 1 [1] => 2 [2] => Array ( [0] => 3 [1] => 4 ) ) [2] => touname ) ) 0 when I hope a function string2array($str), "spam2" suggest this. and It works well~~~hope this helps us, and add to the Array function list ---- Server IP: 208.43.231.9 Probable Submitter: 123.174.56.47 ---- Manual Page -- http://php.net/manual/en/function.json-decode.php Edit -- https://master.php.net/note/edit/121987 Del: integrated -- https://master.php.net/note/delete/121987/integrated Del: useless -- https://master.php.net/note/delete/121987/useless Del: bad code -- https://master.php.net/note/delete/121987/bad+code Del: spam -- https://master.php.net/note/delete/121987/spam Del: non-english -- https://master.php.net/note/delete/121987/non-english Del: in docs -- https://master.php.net/note/delete/121987/in+docs Del: other reasons-- https://master.php.net/note/delete/121987 Reject -- https://master.php.net/note/reject/121987 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209323) next »