$num = [1, 3, 5, 7, 9];
$num[5] = 11;
unset($num[2]);    // Delete variable
print\_r($num);     # => 1 3 7 9 11
echo count($num);  # => 5

See: Arrays

Comments