Re: matching certain values
| From: | Louie Miranda | Date: | Thu, 18 Sep 2003 08:29:02 +0000 |
| Subject: | Re: matching certain values | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162967@lists.php.net to get a copy of this message | ||
thanks for the reference. strpos will be good for my problem.
----- Original Message -----
From: "Jason Wong" <php-general@gremlins.biz>
To: <php-general@lists.php.net>
Sent: Thursday, September 18, 2003 4:11 PM
Subject: Re: [PHP] matching certain values
> On Thursday 18 September 2003 15:55, Louie Miranda wrote:
> > Im trying to match some words on the value that i have impost on php.
> > But i dont know why it doesnt seem to catch some certain fields.
> >
> > if ($HTTP_USER_AGENT === 'MSIE ')
> >
> > I know something is wrong :(
>
> Did you *try* finding out what is wrong?
>
> Simple things like
>
> echo $HTTP_USER_AGENT
>
> to see what it really contains?
>
> And if you're only matching part of a string you should be using things
like
> strpos() or preg_match() etc.
>
> --
> Jason Wong -> Gremlins Associates -> www.gremlins.biz
> Open Source Software Systems Integrators
> * Web Design & Hosting * Internet & Intranet Applications Development *
> ------------------------------------------
> Search the list archives before you post
> http://marc.theaimsgroup.com/?l=php-general
> ------------------------------------------
> /*
> A straw vote only shows which way the hot air blows.
> -- O'Henry
> */
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>