Last active
January 23, 2023 08:17
-
-
Save dev-jaydeep/fcac70249c63ecff9717acebfe0701b4 to your computer and use it in GitHub Desktop.
PHP - Remove junk character from string
This file contains 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
<?php | |
$str = 'Awesome line äåòñêèå ïåñíè'; | |
echo filter_var($str,FILTER_SANITIZE_STRING,FILTER_FLAG_STRIP_HIGH); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment