note 121988 added to book.array

From: Date: Wed, 06 Dec 2017 14:16:06 +0000
Subject: note 121988 added to book.array
Groups: php.notes 
Request: Send a blank email to php-notes+get-209324@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); 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 ) ) 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/book.array.php Edit -- https://master.php.net/note/edit/121988 Del: integrated -- https://master.php.net/note/delete/121988/integrated Del: useless -- https://master.php.net/note/delete/121988/useless Del: bad code -- https://master.php.net/note/delete/121988/bad+code Del: spam -- https://master.php.net/note/delete/121988/spam Del: non-english -- https://master.php.net/note/delete/121988/non-english Del: in docs -- https://master.php.net/note/delete/121988/in+docs Del: other reasons-- https://master.php.net/note/delete/121988 Reject -- https://master.php.net/note/reject/121988 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#209324) next »