php stdclass to array

46

// The manual specifies the second argument of json_decode as:
//	 assoc
//		When TRUE, returned objects will be converted into associative arrays.


$array = json_decode(json_encode($booking), true);
$array = json_decode(json_encode($object), true);

Comments

Submit
0 Comments