hello friends i am new in php,
i tried a code to remove special characters into the string, i tried the following codes,,
$user = "some string here";
preg_match_all('/[^A-Z][^a-z_-][^0-9]/', $user, $result)
but the problem is that if i give the string like : name@#$@$# it also accepted buy the preg_match but i don't want accept any special character or space in to the string just (-_) will accepted....
Please help me to solve this problem...