I have an array:
$colour[0] = "Red";
$colour[1] = "Green";
$colour[2] = "Purple";
$colour[3] = "Blue";
How can I remove the first item in the array and re-index for that I get:
$colour[0] = "Green";
$colour[1] = "Purple";
$colour[2] = "Blue";
Re-indexing array?
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact: