Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert json object to array in php

[
  {
    "userid":1122,
    "username":"testuser1122"
  },
  {
    "userid":1133,
    "username":"testuser1122"
  }
]
$json = json_decode($json_data, true);
		//or//
$json = json_decode($json_data);  
$jsonData = (array) $json;
 
PREVIOUS NEXT
Tagged: #convert #json #object #array #php
ADD COMMENT
Topic
Name
4+2 =