NYCPHP Meetup

NYPHP.org

[nycphp-talk] delete one element from array

Michael Southwell michael.southwell at nyphp.com
Wed Jun 3 21:14:14 EDT 2009


This has to be easy but I'm so pre-occupied with other stuff that I 
can't get it.

I have an array, let's say 12 elements. I want to remove element 7. I 
could array_slice out the first 6 and also the last 5 and then combine 
those resulting arrays but that seems like a very tedious way to do it. 
There has to be an easier way????????
-- 
=================
Michael Southwell
Vice President, Education
NYPHP TRAINING:  http://nyphp.com/Training/Indepth



More information about the talk mailing list