top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

How to get PHP array from json Object?

+1 vote
459 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 ?

...