RE: [PHP] case insenstive
| From: | Kearns, Terry | Date: | Thu, 07 Mar 2002 08:11:02 +0000 |
| Subject: | RE: [PHP] case insenstive | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-87589@lists.php.net to get a copy of this message | ||
Just substitute strstr() with stristr()
The extra I in stristr() stands for "Insensitive".
If I was insensitive, I would say RTFM >:)
If you look under http://www.php.net/manual/en/function.strstr.php
It tells you about stristr
[TK]
> -----Original Message-----
> From: jtjohnston [mailto:taylorjo@collegesherbrooke.qc.ca]
> Sent: Tuesday, 5 March 2002 5:08 PM
> To: php-general@lists.php.net
> 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
>