Code Snippets Php

$string = "This is some text and numbers 12345 and symbols !£$%^&";
$new_string = ereg_replace("[^A-Za-z0-9]", "",
$string);echo $new_string
?>