Possible Duplicate:
Split the first letter from variable
i have code:
if($firstletter=='I')
{
$picture = ImageCreateFromPNG ($global['maleBackgroundImages'][5]);
}
else
{
$picture = ImageCreateFromPNG ($global['maleBackgroundImages'][4]);
}
If I want to change the 'I' to hebrew letter how I do it? and if I want to check range
$firstletter>a **and** $firstletter<b
how I do it in the if?
Assuming UTF-8 character set
or modify for the appropriate character set