note 75854 added to function.ctype-alpha

From: Date: Mon, 18 Jun 2007 23:18:09 +0000
Subject: note 75854 added to function.ctype-alpha
Groups: php.notes 
Request: Send a blank email to php-notes+get-127730@lists.php.net to get a copy of this message
A little replacement function: <?php if ( !function_exists('ctype_alpha') ) { function ctype_alpha($string) { if ( !preg_match('|[^\pL]|', $string) ) /* alternative: */ // if ( !preg_match('|[^A-Za-z]|', $string) ) return true; else return false; } } ?> ---- Server IP: 217.13.201.10 Probable Submitter: 87.78.69.227 ---- Manual Page -- http://www.php.net/manual/en/function.ctype-alpha.php Edit -- https://master.php.net/note/edit/75854 Del: integrated -- https://master.php.net/note/delete/75854/integrated Del: useless -- https://master.php.net/note/delete/75854/useless Del: bad code -- https://master.php.net/note/delete/75854/bad+code Del: spam -- https://master.php.net/note/delete/75854/spam Del: non-english -- https://master.php.net/note/delete/75854/non-english Del: in docs -- https://master.php.net/note/delete/75854/in+docs Del: other reasons-- https://master.php.net/note/delete/75854 Reject -- https://master.php.net/note/reject/75854 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127730) next »