A WordPress-centric search engine for devs and theme authors



_json_decode_object_helper ›

Sincen/a
Deprecatedn/a
_json_decode_object_helper ( $data )
Parameters:
  • (object) $data
    Required: Yes
Returns:
  • (array)
Defined at:
Codex:

No description yet.



Source

function _json_decode_object_helper( $data ) {
		if ( is_object( $data ) ) {
			$data = get_object_vars( $data );
		}
		return is_array( $data ) ? array_map( __FUNCTION__, $data ) : $data;
	}
}