timlondon Posted July 14, 2006 Share Posted July 14, 2006 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 More sharing options...
akitchin Posted July 14, 2006 Share Posted July 14, 2006 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] Link to comment https://forums.phpfreaks.com/topic/14615-array-problem/#findComment-58106 Share on other sites More sharing options...
timlondon Posted July 14, 2006 Author Share Posted July 14, 2006 Exactly what I was looking for!Thanks akitchin :) Link to comment https://forums.phpfreaks.com/topic/14615-array-problem/#findComment-58119 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.