$smiles = array(
...............
"(Z)",
"(U)",
"(^)",
"(au)",
"(mp)",
"(ci)",
"(o)",
"(C)",
"(mo)",
"(co)",
.............
);
$smilesSrc = array(
.................
'sheep.gif',
'snail.gif',
'turtle.gif',
'dog.gif',
'beer.gif
..............
);
Hello!
I have two arrays like above.. I want to replace first array to the second.But there is a big problem.When i tried to prform this code:
$string = eregi_replace($smiles[$i],"<img src=\"$smilesSrc[$i]\">", $string);
thre is a stupid output.
I think the problem is pharanthesis.
Could you help me for this?