<?php
function ich_machs_mal_kurz($val,$key,$alt)
{
for($i=0;$i<$key;$i++)
{
$neu[]=$alt[$i];
}
$neu[]=$alt[$key];
for(;$key<(count($alt)+1);$key++)
{
$neu[]=$alt[$key];
}
return($neu);
}
$test[0] = "a";
$test[1] = "c";
$test[2] = "d";
$test=ich_machs_mal_kurz("b",1,$test);
Gruß aus Berlin!
eddi