I am trying to take an array with delimited strings and turn it into a multi dimensional array with named keys. Its easy to do it with numbers for keys but in my case I want to assign a key to each. The keys are slug, title, and type which correspond to keys 0,1,2 in each array.
array(
'thisslug|This title|text',
'thatslug|Thats title|text',
'anotherslug|Another title|dropdown',
);
I want to end up with
array(
array('slug' => 'thisslug', 'title' => 'this title', 'type' => 'text'),
array('slug' => 'thisslug', 'title' => 'this title', 'type' => 'text'),
array('slug' => 'thisslug', 'title' => 'this title', 'type' => 'text')
),