Re: Another matching question

From: Date: Tue, 03 Feb 2009 02:08:39 +0000
Subject: Re: Another matching question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-287555@lists.php.net to get a copy of this message
On Mon, 2009-02-02 at 20:35 -0500, Ron Piggott wrote: > How do I tell if > > words_from_the_well > > is not the value of $page (whether it is the entire value of $page OR > within the value of $page) > > So far I have come up with the following, but it doesn't deal with when > $page is only within the value of $page > > if ( $page <> "words_from_the_well" ) { > > Ron The <> comparison operator won't work in PHP. What you want maybe is something like this: if(!strstr($page, "words_from_the_well")) {} Ash www.ashleysheridan.co.uk

« previous php.general (#287555) next »