I have 2 tables i.e user
and photo
. According to user_id
get all the user details and all the photos from the photo table.
I am creating a web-service using slim framework. How is it possible to make a array like above given format?
How to make a array like following format?
array(
[id]=>
[name]=>
[email]=>
[dob]=>
[gallery]=>array(
[0] => 1.png
[1] => 2.png
)
[address]=> xyz
)