View Single Post
  #2 (permalink)  
Old 05-09-06, 09:16 PM
Skeleton Man Skeleton Man is offline
Community Liaison
 
Join Date: Jun 2003
Location: Australia
Posts: 406
Thanks: 0
Thanked 0 Times in 0 Posts
Use array_pop() to delete the last key/value pair in the array.

PHP Code:

array_pop($array); 

http://www.php.net/array_pop
__________________
Chris (aka Skeleton Man)
ProgrammingTalk's Perl/PHP Moderator !
Reply With Quote