How to remove elements from an array in PHP
// Create an array $a = new array("orange", "apple", "pineapple"); // Remove the apple from the middle of the array unset($a[1]); // Create an associative array $a = new array("dogs" => 4, "cats" => 9, "birds" =>2); // Remove the birds from the array unset($a['birds']);