function array_insert(&$array, $offset, $new) {
array_splice($array, $offset, 0, $new);
}
$languages = array('German', 'French', 'Spanish');
printf("%s
\n", var_export($languages, TRUE));
array_insert($languages, 1, 'Russian');
printf("%s
\n", var_export($languages, TRUE));
array_insert($languages, 3, array('Swedish', 'Italian'));
printf("%s
\n", var_export($languages, TRUE));
?>