Use strtolower() or strtoupper() to change the case of a string.
And yes doing the same thing twice in the same statement is overkill!  :)
if((substr(strtolower($author), 0, 1) == "a") ||
(substr(strtolower($author), 0, 1) == "a")){}


----- Original Message -----
From: "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, 1) == "a"))
> {
> }
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to