Can anyone tell me the best way to delete an item within an array.
I want to search for a value within the array and then delete the item from the array if it meets certain criteria, which means the value could be anywhere within the array. I also want to be able to delete it totally from the array without leaving any indexes and blank values I have used the array_splice() function but wodered if there was another way as I'm having trouble getting it to work correctly.
I want to search for a value within the array and then delete the item from the array if it meets certain criteria, which means the value could be anywhere within the array. I also want to be able to delete it totally from the array without leaving any indexes and blank values I have used the array_splice() function but wodered if there was another way as I'm having trouble getting it to work correctly.