[0] = = Array ([v] = 1 [Fup] = 0 [n] = = Server [s] + A Rray ([0] = = Array ([v] = 2 [Fup] = 2 [n] = one [s] + Arra Y ([0] = = Array ([v] = 3 [fup] = 41 [n] = one) [1] = = Array ([v] = 4 [Fup] = 1 [n] = ) [2] = = Array ( [v] + 5 [fup] = 1 [n] = three)) ) [1] = = Array ([v] = 42 [Fup] = 2 [n] = [s] = = Array ([0] = = Array ( [v] [fup] = 42 [n] = one) [1] = A Rray ([v] = 74 [ FUP] = [n] = [2] = = Array ( [v] = [fup] = [n] = > three))) [2] = = Array ([v] = [fup] = > 2 [n] = three)))
I want to delete this multi-dimensional array [fup] = ", how should I write??
Reply to discussion (solution)
Is it to erase all the fup? Recursion, yes!
$ar = your array, foo ($ar), function foo (& $ar) { foreach ($ar as & $r) { if (isset ($r [' fup '])) unset ($r [' fup ']); C2/>if (Isset ($r [' s])) foo ($r [' s ']);} }
Is it to erase all the fup? Recursion, yes!
$ar = your array, foo ($ar), function foo (& $ar) { foreach ($ar as & $r) { if (isset ($r [' fup '])) unset ($r [' fup ']); C6/>if (Isset ($r [' s])) foo ($r [' s ']);} }
I am a rookie, PHP is self-taught, so recursive these have not written will
Yes, delete all, fup items, I just tested why do it, what results are not, then I want to return the complete array after deletion how should I write?
Thank you, big God, for trying.
You print it out and look! Didn't you print it on your main post?