<?php $string = 'abcde$ddfd @abcd )der]'; echo 'Old string : '.$string.'<br />'; $newstr = preg_replace("/[^A-Za-z0-9 ]/", '', $string); echo 'New string : '.$newstr; ?>
You have javascript disabled. You will not be able to edit any code.