[Solved] PHP Converting an Array [closed]


Since you tagged cakephp, Cake offers the Hash class which can do this for you.

$newArray = Hash::extract($viewable_collection_ids, '{n}.collection_id');

Cake Docs

solved PHP Converting an Array [closed]