How do I, using preg_replace, replace more than one underscore with just one underscore?
This will Accept Only Characters,numeric value or Special Character found it will replace with _ "); PRINT_R($_REQUEST); $str=$_REQUEST[str]; $str=preg_replace('/[^A-Za-z\-]/', '_', $str); echo strtolower(preg_replace('/_{2,}/','_',$str)); } ?>