On Sat, 31 Jul 2004 04:44:31 GMT, Westcoast Sheri
<sh*********@nospamun8nospam.com> wrote:
Any way to do a simple delete from array?
In other words, what would be the *easiest* (and fastest php runtime)
way to delete "banana" from the following array:
$my_array = array(
"apple",
"banana",
"grape",
"lime"
);
....so that $my_array will now be:
$my_array = array(
"apple",
"grape",
"lime"
);
Use a second array and for each in the first array either insert it
into the second array or not depending on your criteria.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================