How do you strip the first (before any visible text) enter/return space from text taken from a variable (submitted from a textarea)?
How do you strip the first (before any visible text) enter/return space from text
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.
ltrim removes only whitespaces before the text. you can put an array of additional chars you dont need into the second argument.
the fact that it doesn’t work might mean that the chars you are trying to delete are not really new line chars