Web >> Development >> PHP >>  How to remove one or all element from an array

unset($arr[5]); // This removes the element from the array unset($arr); // this removes the entire array