How to convert a multidimensional array into single dimensional array without using foreach method
Array
(
[0] => Array
(
[opportunityid] => 5
[id] => 89
[discountedpackagecost] => 89990.00
[discountedaddoncost] => 61000.00
[title] => This is a very big title okayyyyyyy???????
)
[1] => Array
(
[opportunityid] => 42
[id] => 90
[discountedpackagecost] => 45592.00
[discountedaddoncost] => 0.00
[title] => test book
)
)
I just need only the Key->"id" form each rows.
Any default methods available in php??
I just expect the result to be like this.
array(2) { [0]=> string(2) "89" [1]=> string(2) "90" }