View Single Post
Old 06-25-2009, 01:43 PM   #8 (permalink)
Wildhoney
La Vida es Sueño
Advanced Programmer Top Contributor 
 
Wildhoney's Avatar
 
Join Date: Sep 2007
Location: Oldham
Posts: 2,258
Thanks: 90
Wildhoney is on a distinguished road
Default

If you're wanting to remove one particular index from the array, then you could use the unset construct.

php Code:
$aFruit = array('Apples', 'Oranges', 'Bananas');

/* Remove "Oranges" */
unset($aFruit[1]);

/* Apples, Bananas */
echo implode(', ', $aFruit);
__________________
The man who comes back through the Door in the Wall will never be quite the same as the man who went out.
Send a message via AIM to Wildhoney Send a message via MSN to Wildhoney Send a message via Yahoo to Wildhoney
Wildhoney is offline  
Reply With Quote