Advertisement
Guest User

Untitled

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