Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

convert 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;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #object #array #php
ADD COMMENT
Topic
Name
1+8 =