Created
February 27, 2022 19:19
-
-
Save josfaber/3cbd833cfcd7dd240fd315b224abcc84 to your computer and use it in GitHub Desktop.
Trim including non-breaking spaces
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo trim($str, "\xC2\xA0"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment