Oletem
1/14/2018 - 3:37 PM

unset($array)

<?php 

$learn= array('Conditionals', 'Arrays', 'Loops');
unset($learn[1], $learn[2]);//removes 'Arrays' and 'Loops'
$learn = array_values($learn);//in order to fill the holes, we reindex arry

var_dump($learn);

?>