Jump to content

Archived

This topic is now archived and is closed to further replies.

timlondon

Array problem

Recommended Posts

Hi guys,

If I have an array such as :

$cat[1] = "red";
$cat[2] = "green";
$cat[3] = "purple";
$cat[4] = "yellow";
$cat[5] = "pink";

If I then identify that I need to remove $cat[3] and $cat[4] is there a function I can use?

The array is much larger with anything between 60 and 100 and the content to be deleted would change according to different criteria.

Share this post


Link to post
Share on other sites
this topic was handled earlier today (very aptly) by crayon violent:

[url=http://www.phpfreaks.com/forums/index.php/topic,100526.0.html]http://www.phpfreaks.com/forums/index.php/topic,100526.0.html[/url]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.