Hi all how are yas?

I have one question for which I could not find the answer:

How do I remove an element of an array with a specific key or index?

    To be clearer:

            Lets say I have an array $shoppingCart[] (quite a lot of them)
            I want to delete $shoppingCart[345] (which is not the last or the first)
            How do I do it?


I have checked the PHP manual... it has array_pop, array_shift which are for the last 
element and the first element. But what about specific elements in between the first 
and the last?

Please help out... I'm really in a rush to finish my project... :(

Thanks soooo much in advance for your time.


Yours,
Wee Keat Chin

---------------------------------------------------

"Man is only truly great when he acts from his passions." 

Reply via email to