K
K
Khaybulla Musaev2016-02-24 22:58:45
PHP
Khaybulla Musaev, 2016-02-24 22:58:45

Does anyone have php ctype functions working?

I'm testing the Respect/Validation php-validation library (available on the git, the most popular validation library).
There, all comparison functions are tied to the CTYPE family of functions (such as ctype_alnum, ctype_alpha, etc.). I tried to change the locale on my VDS . The result is zero. I checked if the locale is installed in Linux itself - it is not installed. Installed, now on locale -a the answer is:
setlocale(LC_ALL, 'ru_RU.utf8');

...
en_ZM.utf8
en_ZW.utf8
POSIX
<b>ru_RU
ru_RU.iso88595
ru_RU.utf8</b>

Same song, ctype function doesn't work.
But if you write it, it displays WEDNESDAY , and if you comment, it writes in English. That is, setting the locale works, so-and-so... But the ctype functions do not react. Including, for example, the strtoupper function does not work either. Any thoughts on this issue?.. PS Who what libraries do you use for validation?..
echo strftime("%A");


Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question