All i need is to add [checked] => 1 in some of the arrays on a condition: i have a variable and wants to compare that with the value of 'name' . Ex: If my variable matches with Display or Forwarding, then insertion of a new key and value has to be done.
can anybody tell me how to do that ? I want to directly go to specific index like at 0 or 1 or any index of features array and want to insert new key and value like [checked] => 1
Array
(
[Call xyz] => Array
(
[features] => Array
(
[0] => Array
(
[name] => Display
[display] => webxxx
[category] => x
[uniq_id] => x
)
[1] => Array
(
[name] => Forwarding
[display] => webxxx
[category] => x
[uniq_id] => x
)
)
)
[Hidden] => Array
(
[features] => Array
(
[0] => Array
(
[name] => XYZ
[display] => webxxx
[category] => x
[uniq_id] => x
)
[1] => Array
(
[name] => ABC
[display] => webxxx
[category] => x
[uniq_id] => x
)
)
)