Hi,
I am new to PHP and have gotten stuck on an issue. I need to search a string and replace elements of that string using PHP3.
Lets say we have a string named $string
if
$string = abcd
I need to replace "a" with 1, "b" with 2, "c" with 3, "d" with 4 and output that to $new_string
So $new_string would = 1234
If anyone can help I would appreciate it. I have tried several methods but all have failed in one way or another.
Joe