I'm getting below output as an array.
$array =
Array
(
[12] => Array
(
[1] => Array
(
[14] => Array
(
[0] => Array
(
[name] => Avaya Implementation Services
[service_id] => 14
[ser_type_id] => 1
[service_desc] =>Avaya Implementation Servic
)
)
)
)
);
I want to print only service_desc array value. and I don't want call like $array[12][1][14][0]['service_desc'];
How can I call particular service_desc array value of the array?
$array[12][1][14][0]['service_desc'];, otherwise you will need to re-factor your array, flat it so to speak, or re-factor the way you are generating the array with;array_walk_recursiveto get value for a key. But still, be clear with your question so that we can help you out