Advertisement

07.04.2005 at 09:01AM PDT, ID: 21479751
[x]
Attachment Details

delete an array entry

Asked by morpheus3g in PHP Scripting Language

Tags: , ,

i have an array like this

$array=array("one","two","bingo","three","four");

i want to remove the "bingo" (i know his key)... i tried with " unset($array[2]); but then there's an "hole" in the array... Start Free Trial
[+][-]07.04.2005 at 09:13AM PDT, ID: 14363274

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: PHP Scripting Language
Tags: array, delete, remove
Sign Up Now!
Solution Provided By: Diablo84
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.04.2005 at 09:14AM PDT, ID: 14363281

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.26.2005 at 07:58PM PDT, ID: 14964006

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32