V@no.
12-27-2003, 01:50 PM
Hi!
I was wondering is there any way PHP could determine when in the text is "real" newline or its a string as "\n" ?
for example code like this:<?php
highlight_string("<?php\n\$text = \"Something\non\nthree lines\";\n?>\n\n");
highlight_string("<?php\n\$text2 = \"Semething
on
three lines\"\n?>");
?>
if u try this code, it will show u exactly identical two stings, even though first one was only using "\n" sting but second was using "real" newlines (or maybe return caret if u prefer)
so, is there any way to determin it?
thank you!
I was wondering is there any way PHP could determine when in the text is "real" newline or its a string as "\n" ?
for example code like this:<?php
highlight_string("<?php\n\$text = \"Something\non\nthree lines\";\n?>\n\n");
highlight_string("<?php\n\$text2 = \"Semething
on
three lines\"\n?>");
?>
if u try this code, it will show u exactly identical two stings, even though first one was only using "\n" sting but second was using "real" newlines (or maybe return caret if u prefer)
so, is there any way to determin it?
thank you!