I have done a lot of researching, and I cant find out how to delete an element from an array in PHP. In Java, if you have an ArrayList<SomeObject> list
, you would say list.remove(someObject);
.
Is there anything similar you can do in PHP? I have found unset($array[$index]);
, but it doesnt seem to work.
Thanks for your help in advance!