Convert an Array to an Object in PHP | CodeTrail