PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
\w and ctype_xxx functions are locale-aware, they both match what is considered a letter or digit in the current locale. Note that locale is not the same as alphabet, e.g "en-US" locale still includes ä á ß and other "european" characters.
stereofrog wrote:\w and ctype_xxx functions are locale-aware, they both match what is considered a letter or digit in the current locale. Note that locale is not the same as alphabet, e.g "en-US" locale still includes ä á ß and other "european" characters.
Ahh, yes, it does say that in the documentation. I'll take note of it.