Created
October 4, 2021 08:07
-
-
Save denihida1216/208bbc42c9af6d09020b6a0976022e5a to your computer and use it in GitHub Desktop.
Trim unicode UTF-8 whitespace in PHP SQLSERVER and other
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
preg_replace('/^[\pZ\pC]+|[\pZ\pC]+$/u', '', $string); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment