Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Array set to empty

So many array functions

7:10 am on Sep 30, 2006 (gmt 0)

Junior Member

10+ Year Member

joined:Sept 2, 2004
votes: 0

Just want to empty an array:
$ILoveSushi[] = ""; seems to add an empty index. How do I make the whole array empty?
3:53 pm on Sept 30, 2006 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 22, 2002
votes: 0

You can do this:

$ILoveSushi = NULL;



...or, if you want to keep the variable as an array but completely empty it, do this:

$ILoveSushi = array();


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members