InterviewSolution
Saved Bookmarks
| 1. |
Why Doesn't The Following Code Print The Newline Properly? <?php $str = 'hello, There.\nhow Are You?\nthanks For Visiting Fyicenter'; Print $str; ?> |
|
Answer» Because inside the single quotes the \n character is not INTERPRETED as NEWLINE, just as a SEQUENCE of TWO characters – \ and n. Because inside the single quotes the \n character is not interpreted as newline, just as a sequence of two characters – \ and n. |
|