How to return json object with json array inside of it? – PHP Versions
i have many to many relationship like this : Server version: 10.4.17-MariaDB table colors(id,name). table items(id,title....). table item_color(id,items_id,color_id). my query is like this : SELECT items.*,colors.name FROM items,item_color,colors where items.id = item_color.item_id and colors.id = item_color.color_id i use php function…