advanced code snippet search
built2fall on 01/21/10
php object array convert cast
04/12/10 07:38pm01/21/10 03:20pm
1 person have marked this snippet as a favorite
netzwerktourist
// Converts an array to an objectfunction array2obj($data) { return is_array($data) ? (object) array_map(__FUNCTION__,$data) : $data;}
Report this snippet Tweet
Comment:
You need to login to post a comment.