Having problems with this.
Let’s say I have a parameter composed of a single character and I only want to accept alphabetic characters. How will I determine that the parameter passed is a member of the latin alphabet (a–z)?
By the way Im using PHP Kohana 3.
Thanks.
Use the following guard clause at the top of your method:
If you want to allow upper case letters too, change the regular expression accordingly:
Another way to support case insensitivity is to use the
/icase insensitivity modifier: