Posted by Hendri Kurniawan on 04/27/07 22:39
ashore wrote:
> Guys, the addslashes didn't work for me, tho I agree they shd! But
> tell me why the following PHP didn't wrk:
>
> $phpfoo = "\n\n\n";
>
> print str_replace('\n' ,'ZZZZZZZZZZZZZ' ,$phpfoo);
>
> AS
>
Because of the single quote.
PHP process "\n", but does not process '\n';
Hendri
[Back to original message]
|