Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function c($input){
- return (!preg_match('/^\-?\d+(\.\d+)?$/D', $input) || preg_match('/^0\d+$/D', $input)) ? trim(preg_replace('/[^a-zA-Z0-9_@#$&%[]()-,!<\/]/i', '', $input)) : $input;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement