Is there an easy way to delete an element from an array using PHP, such that foreach ($array) no longer includes that element?
foreach ($array)
I thought that setting it
Use the following code:
$arr = array('orange', 'banana', 'apple', 'raspberry'); $result = array_pop($arr); print_r($result);