|
Posted by pepper.gabriela on 09/12/07 18:54
Hello, I use this code:
$a = "&&&&&& a b c d e f g";
$b = ereg_replace ("&", "%26", $a);
echo $b;
to subtitute every "&" occurrence in $a.
What if I want to change other occurrences of other chars at the same
time?
Say, I want to substitute "?", "*" and "°"...
How can I do?
Navigation:
[Reply to this message]
|