Page 1 of 1

Empty array [SOLVED]

Posted: Mon Apr 14, 2008 3:10 am
by aceconcepts
Hi,

When all values have been deleted from my array and I print_r() my array it outputs as: Array ( [0] => Array ( [1] => Array ( ) ) [1] => Array ( [2] => Array ( ) ) )

How do I ensure that the array is completely empty?

Re: Delete values from array

Posted: Mon Apr 14, 2008 3:38 am
by onion2k
Search the array for the value to find it's key, then do what you're doing there with the key you found.