> You can do this in many way, but the easiest way is just get the first
> character of the string using substr(), and compare it to what you want.
>
> It is here:
> http://nl2.php.net/manual/en/function.substr.php
>
> if (substr('abcd',0,1) == 'a') ...