I couldn't get it to work with 'ereg_replace'. Instead I tried 'preg_replace', wich replace text...
I don't get the '[0-9]+(.*)' part of ereg_replace. Not even after looking in my PHP-handbook or at www.php.net. 😕
Maybe someone could give some explanation?
To get it to work, this is what I did:
for ($i=0;$i<=9;$i++)
{
$search[$i]="'$i'";
}
$replace = "";
$str_x = preg_replace($search, $replace, $str);
so: "010aaa010" becomes "aaa", "020bbb020"becomes "bbb".
But what I want is only the first three numbers to be removed.
Help is appriciated.
Arjen.