As developers, we have a bunch of stupendous stories about the time spent debugging legacy code. This blog is designed to highlight some of the most annoying / interesting / hair-rising / hilarious solutions of the past.
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