Answers for "Trim whitespaces around string, but not inside of string."

0

Trim whitespaces around string, but not inside of string.

$cleanStr = trim(preg_replace('/ss+/', ' ', str_replace("n", " ", $str)));
Posted by: Guest on February-02-2022

Code answers related to "Trim whitespaces around string, but not inside of string."

Browse Popular Code Answers by Language