How can i unset a range of keys between say 70 to 80 in an array like this?
[63] => Computer Science and Informatics [64] => Dentistry [65] => Devel
You can try array_slice
$return = array_slice($original, 0, 60)
then
$return = $return+array_slice($original, 70)
or
array_splice
$return = array_splice($original, 60, 10)
There isn't really a shortcut to this:
for ($i = 70; $i <= 80; $i++) unset($array[$i]);