snowball
09-23-2002, 11:07 PM
Hi
Can anyone help please ......
I need to check to see if the first character of a string is an upper case or lower case letter.
if ($n32 XXXXXXXXXXXXXXXX ) {
$in{'filedirname'} = "titles/";
} else {
$in{'filedirname'} = "graphics/";
}
so if $n32's first letter is ABCDEFGHIJKLMNOPQRSTUVWXYZ then do the fist option .......
if $n32's first letter is abcdefghijklmnopqrstuvwxyz then do the second option .........
what should the first line (or several lines before this) be ........
I would appreciate any help ....
Thanks
Snow.
Can anyone help please ......
I need to check to see if the first character of a string is an upper case or lower case letter.
if ($n32 XXXXXXXXXXXXXXXX ) {
$in{'filedirname'} = "titles/";
} else {
$in{'filedirname'} = "graphics/";
}
so if $n32's first letter is ABCDEFGHIJKLMNOPQRSTUVWXYZ then do the fist option .......
if $n32's first letter is abcdefghijklmnopqrstuvwxyz then do the second option .........
what should the first line (or several lines before this) be ........
I would appreciate any help ....
Thanks
Snow.