Most popular tags

26 questions

5 answers

1 comment

3,362 users

How to convert JSON string to array in PHP

0 like 0 dislike
285 views
I want to convert JSON string to JSON array. Also I want to set option off to convert it into standard class
asked Nov 20, 2014 in PHP by phpexpert (1,120 points)
edited Nov 20, 2014 by phpexpert
    

1 Answer

0 like 0 dislike
In php we can decode JSON string into php array or object using following method

json_decode($jsonString, $flag);
 

Where

$jsonString - This is the json formated string value

$flag - If true then return PHP array otherwise return the PHP object
answered Dec 15, 2014 by expert (2,200 points)

Related questions

0 like 0 dislike
0 answers 35 views
35 views asked Nov 21, 2014 in PHP by smith.anderson12 (240 points)
0 like 0 dislike
0 answers 117 views
117 views asked Mar 14, 2015 in PHP by dpatil (1,140 points)
0 like 0 dislike
0 answers 30 views
30 views asked Nov 24, 2014 in PHP by expert (2,200 points)
0 like 0 dislike
1 answer 548 views
0 like 0 dislike
0 answers 117 views
117 views asked Apr 12, 2015 in API by liom (310 points)
...