Tuesday, April 15, 2014

A function for array to object conversion

Ironically the title of this post is way longer than the function itself, which I've just found:

public static function arrayToObject($d) {
return (object) $d;
}

No comments:

Post a Comment