Dear all,
several months ago, you provided a perfect solution for my IsAlpha & co issues. But once again, I ran into issues after upgrading PHP (to version 5.2.9), although the ctype_* functions seem to do their job now:
ctype_alpha( $value ) /* VS */ preg_match("/^[\p{L} _.\-]+$/u", $value)
ctype_alnum( $value ) /* VS */ preg_match("/^[\p{L}0-9 _.\-]+$/u", $value)
By issues, I mean that 'GB' or 'blablue' is i.e. correctly identified as alpha by ctype_alpha()
, but fails with preg_match("/^[\p{L} _.\-]+$/u", $value)
.
Please let me know if you have any ideas, I ran out of them after some serious googling..
Many, many thanks!
P.S. LANG
/LC_CTYPE
/etc is set to en_US.UTF-8
both on both environments