You can't use "\10" it has no meaning.
Instead use this: "\x0A".

"Ben-Nes Michael" <[EMAIL PROTECTED]> wrote in message
010901c1306a$97cc4da0$[EMAIL PROTECTED]">news:010901c1306a$97cc4da0$[EMAIL PROTECTED]...
> Hi All
>
> I did
>
> echo ord ("\n");
> which return 10
>
> so I tried to do this with no success
> echo addcslashes ("hello\nworld", "\10");
> returning: "hello newline world"
>
> while doing:
> echo addcslashes ("hello\nworld", "\9");
> returned me what I wanted: "hello\nworld" which mean the string hold
> "hello\\nworld"
>
> Its look like a bug, ord say" /n = 10 while addsclashes replace /n using
/9
> as ASCII value.
> What is the list opinion ?
>
> --------------------------
> Canaan Surfing Ltd.
> Internet Service Providers
> Ben-Nes Michael - Manager
> Tel: 972-4-6991122
> http://sites.canaan.co.il
> --------------------------
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to