<?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); ?>