Hello,
I'm quite new to PHP but I do reconise the #C syntax used. Anyway I'm trying to make my own pixel font replacement script. I've got it to replace uppercase lattering quite well, but as soon as it comes to lover case replacing I have problems. You see the 'img' from the image tag lettering is being replaced due to the scripting being told to replace lower case lettering. I've written this in the hope you people would know how to code it to work correctly, it's the theory behind the script not the working script:
$text = "img";
if ($text = "<") {
Skip Until $text = ">"; - This need coding, I'm not sure what the PHP equivilent to 'step' to skip characters in a string so I was hoping you guys knew.,
} else {
$text = str_replace('i', '<img src="i.gif">',$text);
$text = str_replace('m', '<img src="m.gif">',$text);
$text = str_replace('g', '<img src="g.gif">',$text);
}
-----------------------------------------------------------------
1) $text = 'img';
2) $text = '<img src="i.gif">mg';
3) $text = '<img src="i.gif"><img src="m.gif">g';
4) $text = '<img src="i.gif"><img src="m.gif"><img src="g.gif">';
5) echo $text;
-----------------------------------------------------------------
This is how it should work in theory.
If you do get confused by this topic please ask me questions. I'm not to good at explaining myself even though I try.