How to Delete an Element From an Array In PHP?

Here is the solution of how to delete an element from an array easily.