I\'m sure this question has been asked before, my apologies for not finding it first.
The original array:
[0] => Array ( [categoryId]
There's no built-in function for this, but it's usually referred as "pluck".