Source Code:
(back to article)
<?php $string = "Hello World! 123"; $string = preg_replace("/[^a-zA-Z0-9]/", "", $string); echo $string; // Output: // HelloWorld123 ?>
Result:
Report an issue