ooPHP - How do I create an array of objects from an associative array?
问题 I'm not sure if this is even possible after trying to figure it out for hours but here goes... I have an class, UserPicture, which has properties for filename, filetype, created etc. (i.e. it doesn't store the actual picture as a blob, rather references it by using $filename.$filetype). I want to be able to have a page that displays all of a user's pictures, so I need to retrieve all rows from the DB relevant to that user. I've got the associative array out of the DB successfully and have