Re: Another matching question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux