top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration

How to get PHP array from json Object?

+1 vote
80 views
How to get PHP array from json Object?
posted Jul 28, 2017 by Anand Huded

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Get PHP array from json Object

$object='{"name":"QueryHome","Description":"Knowledge Sharing Website"}';
$array = json_decode($object);
answer Aug 2, 2017 by Manikandan J
Similar Questions
0 votes
{"general":{
 "round-corner":"0",
 "border-stroke":"2",
 "background-color":"#ffffff"
 }
}

I have this json string, I know that php variable names doesn't support dashes. So what to do in this case ?

Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#280, 3rd floor, 5th Main
6th Sector, HSR Layout
Bangalore-560102
Karnataka INDIA.
QUERY HOME
...