I have a PHP array that looks like this:
Array
(
[0] => Array
(
[start] => DateTime Object
(
)
[end] => DateTime Object
(
)
[comment] => A comment.
)
[1] => Array
(
[start] => DateTime Object
(
)
[end] => DateTime Object
(
)
[comment] => Another comment.
)
)
I would like to create a function that deletes an element (start,end,comment) from the array that matches the functions input, and returns false if it doesn't exist. Is there already a PHP function that does this?