i have two tables category and images.i want create a multidimensional array like
$headings = ['heading 1', 'heading 2', 'heading 3'];
$images = [
'heading 1' => ['image 1', 'image 2', 'image 3', 'image 4', 'image 5'],
'heading 2' => ['image 1', 'image 2', 'image 3'],
'heading 3' => ['image 1']
];
So how can i do that using php.
Images table
category table
careate
correct tocreate
– Turtle Oct 1 '16 at 10:36