Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/content/08/7540608/html/host_sites/computerkida/qa-include/qa-db.php on line 66
ComputerKida: How to convert JSON string to array in PHP

Just Click, Drag, PROFIT... It's That Simple!

The Easiest Way to Create High-Converting Lead Pages, Sales Pages, Member Portals and Marketing Pages Like the PROs... The ULTIMATE Marketing Page Creation System is Finally Here...

Take your copy here

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
245 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 33 views
33 views asked Nov 21, 2014 in PHP by smith.anderson12 (240 points)
0 like 0 dislike
0 answers 114 views
114 views asked Mar 14, 2015 in PHP by dpatil (1,140 points)
0 like 0 dislike
0 answers 27 views
27 views asked Nov 24, 2014 in PHP by expert (2,200 points)
0 like 0 dislike
1 answer 511 views
0 like 0 dislike
0 answers 115 views
115 views asked Apr 12, 2015 in API by liom (310 points)
...