We're a place where coders share, stay up-to-date and grow their careers.
For what its worth, ctype_ functions are locale aware, and may produce slightly different results based on the locale. While preg_match is not locale aware.
Thank you for this addition! I couldn't find something in the docs about the locales, do you have an example?
It is mentioned in the introduction on ctype php.net/manual/en/intro.ctype.php
Ah thanks 😊
For what its worth, ctype_ functions are locale aware, and may produce slightly different results based on the locale. While preg_match is not locale aware.
Thank you for this addition! I couldn't find something in the docs about the locales, do you have an example?
It is mentioned in the introduction on ctype php.net/manual/en/intro.ctype.php
Ah thanks 😊