hi!
I already posted this question some time ago and thought to get a sufficient answer - but after checking a second time I had to realize that it did not work out...
here is the problem:
I have got 3 arrays:
$subject = array(1,1,5,2,4,2,1,9,10,1)
$pattern = array(1,2,3,4,5,6,7,8,9,10)
$replace = array(5,5,5,4,4,2,5,1,2,2)
what I do is:
str_replace ($pattern, $replace, $subject)
my problem is, that str_replace can not deal with numbers - so I turned to preg_replace which should do it - but it gives me something like "delimiter must not be alphanumeric or backslash) -> does this mean I have to get rid of the "," commas ??
any hint appreciated!
thanks a lot
cheers
amos