How about:

$my_array = array(); // clears the whole array (and makes a new one)


$my_array[$i] = null; // clears a single entry in the array at index $i


karthikeyan wrote:
How to clear an array?

i used unset. But it destroys the array property of the variablke itself. I just need to clear the contents. Pls tell me how



Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now

PHP Database Mailing List (
To unsubscribe, visit:

Reply via email to