i have function to validate user input a against numbers-special chars pattern (no alpha)but i have not do it exactly,and i searched over the internet to find such this but i not find,any help
function validate_num($input){
return ( ! preg_match("^[0-9*#+]+$", $input)) ? FALSE : TRUE;
}