> How can I delete a key and it's value from an array? > > for example: > > $test = array(0=>'yes', 2=>'no', 5=>'maybe', 7=>'so'); > > And I wanted to delete the second key "2" so I could end up with an array > like so: > > $test = array(0=>'yes', 5=>'maybe', 7=>'so');
unset($test[2]); ---John W. Holmes... PHP Architect - A monthly magazine for PHP Professionals. Get your copy today. http://www.phparch.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php