Davi wrote:
Em Quarta 06 Junho 2007 10:54, Davi escreveu:
But... Why does it happen:
[code]
$object=mysql_fetch_object($result);
$texto = $object->texto;
$texto=preg_replace("/\r|\n/","",stripslashes($texto));
echo $texto;
[/code]
[output]
Teste
\r\nde formatação!
\r\nTudo funcionando...
\r\n
[/output]
I'm using stripslashse 'cause I'm getting the values from a DB.
Any kind of tip?
TIA
If I do:
[code]
echo "\r\nJust testing... \r\n again...";
[/code]
The output is:
how and where are you outputting this to?
[output]
Just testing... again...
[/output]
And the source code (in browser) is:
What OS?
[output]
Just testing...
again...
[/output]
Am I missing anything?
TIA
--
Jim Lucas
"Some men are born to greatness, some achieve greatness,
and some have greatness thrust upon them."
Twelfth Night, Act II, Scene V
by William Shakespeare
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php