Skip to content

Instantly share code, notes, and snippets.

@dev-jaydeep
Last active January 23, 2023 08:17
Show Gist options
  • Save dev-jaydeep/fcac70249c63ecff9717acebfe0701b4 to your computer and use it in GitHub Desktop.
Save dev-jaydeep/fcac70249c63ecff9717acebfe0701b4 to your computer and use it in GitHub Desktop.
PHP - Remove junk character from string
<?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