我有一个问题,比如我有一个多维数组,如果内部数组包含“编辑”,我想删除父数组,数组是这样的
[fields] => Array
(
[0] => Array
(
[header] => Array
(
[fieldName] => edit
[displayName] => Edit
[width] => 40
[group] => 0,1,2,3
[cssClass] => dgAssetsCentered
)
[visibility] => Array
(
[showOnStart] => 1
[editable] =>
)
[cell] => Array
(
[type] => link
[params] => Array
(
[label] => Edit
)
)
[sort] => Array
(
[sortable] => 1
)
[validator] => Array
(
[name] =>
[params] =>
)
)
[1] => Array
(
[header] => Array
(
[fieldName] => OFFERID
[displayName] => Offer Id
[group] => 0
我想删除数组 0,因为内部数组包含“编辑”我能够删除 [标题] 数组无法删除 [0] 数组。请建议。
谢谢亚历克斯。