Jump to content

Array problem


timlondon

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.
Link to comment
https://forums.phpfreaks.com/topic/14615-array-problem/
Share on other sites

Archived

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

×
×
  • Create New...

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.