note 21506 deleted from function.is-string by didou

From: Date: Wed, 29 Oct 2003 21:34:40 +0000
Subject: note 21506 deleted from function.is-string by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59501@lists.php.net to get a copy of this message
Note Submitter: janfolkert@no_spam_pls_movenext.nl ---- function is_alpha($input) { return (("a" <= $input && $input <= "z") || ("A" <= $input && $input <= "Z"))?true:false; } Seeing as how i missed a function that could check if a variable was a character or not, i made this little function. It simply checks if a var is somewhere in the alphabetical range, and if so, returned true or false. input: single character output: true/false

« previous php.notes (#59501) next »