我想在多维数组的所有列中搜索字符串,并且我希望所有匹配的行都具有完整的数组结构。
Array
(
[0] => Array
(
['ConsumerDetail'] => Array(
[quote_id] => QU-12-14-T2887
[client_name] => asdf asdf
[agent_name] => flip flob 2313123
[zipcode] => 66002
[dob] => 01/02/1996
)
)
[1] => Array
(
['ConsumerDetail'] => Array(
[quote_id] => QU-12-14-R4118
[client_name] => james anderson
[agent_name] => JOSEPH NEPTUNE
[zipcode] => 64656
[dob] => 07/16/1958
))
[2] => Array
(
['ConsumerDetail'] => Array(
[quote_id] => QU-12-14-W2042
[client_name] => flip leathers
[agent_name] => test agen
[zipcode] => 65018
[dob] => 12/17/1979
))
)
依旧......
现在,如果我搜索字符串flip
,它应该得到包含数组0
索引的2
和0
索引元素的相同结构的数组,因为它在{{1}中找到}}和agent_name
因为它在2
索引中找到了
和结果数组将是这样的:
client_name