Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php stdclass to array

// 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);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #stdclass #array
ADD COMMENT
Topic
Name
3+7 =