PHP remove values from an array

Recently I was helping a friend with a shopping cart project he was working on and long story short we came across the issue that PHP doesn't have a function which will strip out an entity or value from an array and then shunt the rest of the array across accordingly, and even more oddly was that Google didn't really have anything to help us on our way. Anyway after a bit of discussing we got a little function together which did this nicely (although it would need to be modified to run multiple removals without a loop calling the function over and over).

My intention was to get that function up and document it tonight but unfortunately I didn't get it off my friends machine, but I'll try and get it up and live by the end of the week to help you guys out!



Buy me a beer or a book?

amazon PayPal - The safer, easier way to donate online!

Free Downloads