I have a small array that I was hoping to divide into a multidimensional array. I have goofed around with some foreach loops, counted loops, and recursion with no luck.
Can I take an array like this:
array(
(int) 0 => 'red',
(int) 1 => 'white'
(int) 2 => 'blue'
)
And make it multidimensional like this:
array(
'AND' => array(
'LIKE ' => 'red',
'AND' => array(
'LIKE ' => 'white',
'AND' => array(
'LIKE ' => 'blue'
)
)
)
)