I’m aware that PHP ignores enters/white spaces and the \n character doesn’t work within a string, so how would one do this?
I’m aware that PHP ignores enters/white spaces and the \n character doesn’t work within
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Why do you think \n doesn’t work within a string? It does work.
You can do:
Or:
Both will work just fine.
However:
has the actual characters \n not a newline, so check which quotes you are using.
But:
works fine.