jtjohnston [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, 5 March 2002 5:08 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] case insenstive
>
>
> I need to make this case insensitive. This seems like over kill?
>
> if((substr($author, 0, 1) == "a") or (substr($au
if ($author[0]=='a' || $author[0]=='A')
{
...
}
or (much slower)
if (strtolower($author[0])=='a')
{
...
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
"jtjohnston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 04, 2002 11:08 PM
Subject: [PHP] case insenstive
> I need to make this case insensitive. This seems like over kill?
>
> if((substr($author, 0, 1) == "a") or (substr($author, 0,
if (eregi("^a", $author))
{
print "blah!";
}
Niklas
-Original Message-
From: jtjohnston [mailto:[EMAIL PROTECTED]]
Sent: 5. maaliskuuta 2002 8:08
To: [EMAIL PROTECTED]
Subject: [PHP] case insenstive
I need to make this case insensitive. This seems
> I need to make this case insensitive. This seems like over kill?
>
> if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a"))
> {
> }
if((strtolower(substr($author, 0, 1)) == "a")
{
}
:)
J
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.n
I need to make this case insensitive. This seems like over kill?
if((substr($author, 0, 1) == "a") or (substr($author, 0, 1) == "a"))
{
}
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
6 matches
Mail list logo