Does anyone know if it's posible to string replace a character with a backspace. I have tried using ereg_replace("<ul>", "\b", $text); but have had no luck.
Thanks
Check out this page: http://www.php.net/manual/en/language.types.string.php
There's no escape sequence for the backspace character.
But if you look at any ASCII chart, backspace has an ASCII value of 8. So you can do this:
$text = ereg_replace("<ul>", chr(8), $text);
Diego
...though it's likely that if you're wanting this to backspace over something in an HTML page, you'll find that the browser wouldn't know what to do with it.