array remove keys php code example
Example 1: php unset array key
unset($dataArray['key']);
Example 2: php array remove keys keep values
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
?>
Array
(
[0] => XL
[1] => gold
)
Example 3: php array remove key value pair
unset($array['key-here']);