Und hier die Loesung des Ganzen:
$suche="E";
$strlen_ex = strlen($money);
if (stristr($money, $suche))
{
$exponent=substr($money,-2);
$search_position=$strlen_ex - 4;
$money_wo_ex=substr($money,0,$search_position);
$money_wo_ex_len=strlen($money_wo_ex);
$money_wo_komma=substr($money_wo_ex,0,1) . substr($money_wo_ex,2,$money_wo_ex_len-2);
if (strlen($money_wo_komma) < (1 + $exponent))
{
$reallen=1+$exponent;
$missing=$reallen-strlen($money_wo_komma);
for ($j=0; ($j < $missing); $j++)
{
$money_wo_komma .= "0";
}
}
$money=$money_wo_komma;
}[/php]
Ob das nun die Sauberste Loesung is, lasse ich mal dahingestellt