note 24658 added to function.ereg
| From: | php-general at lists dot php dot net | Date: | Sat, 24 Aug 2002 19:59:07 +0000 |
| Subject: | note 24658 added to function.ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-35553@lists.php.net to get a copy of this message | ||
Using:
setlocale('LC_CTYPE', 'fr'), or
setlocale('LC_ALL', 'fr')
will enable the '[[:alpha:]]', '[[:upper:]]', and '[[:lower:]]'
regexps, for ereg(), eregi(), preg() and pregi() functions, as well as the isalpha() function, to
match French letters (including [àâäçéèêëîïôöùûüÿ] and their uppercase versions).
This also allows uppercase/lowercase conversions of these letters in strtoupper(), strtolower(), and
character detection with ctype_alpha(), ctype_upper(), ctype_lower()...
This support is enabled provided that PHP is compiled with locale support and the supporting host is
installed with the appropriate locale libraries for that language.
--
http://www.php.net/manual/en/function.ereg.php
http://master.php.net/manage/user-notes.php?action=edit+24658
http://master.php.net/manage/user-notes.php?action=delete+24658
http://master.php.net/manage/user-notes.php?action=reject+24658