Why do I get this result when doing a trim()?
trim( '18" x 24"', '"' )
The result is 18" x 24 whereas my expected result is 18 x 24. It only removed the last " of the string.
Any help would be greatly appreciated! 😀
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.
trim()only removes the specified characters from the beginning and end of the string. If you want to remove them everywhere in the string, usestr_replace():