Re: if string contains

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

 



Me thinks that was what I used.
http://ca.php.net/strstr
http://ca.php.net/stristr
http://ca.php.net/strpos
What's the difference? Other than

   "*Note: * If you only want to determine if a particular needle
   occurs within haystack, use the faster and less memory intensive
   function *strpos()*
   <http://ca.php.net/manual/en/function.strpos.php> instead."


Rob Agar wrote:

heh.  you perhaps remember the strstr function..?  :)

Rob

-----Original Message-----
From: John Taylor-Johnston [mailto:John.Taylor-Johnston@xxxxxxxxxxxxxxxxxxxxx] Sent: Friday, 30 September 2005 2:26 PM
To: php-general@xxxxxxxxxxxxx
Cc: John.Taylor-Johnston@xxxxxxxxxxxxxxxxxxxxx
Subject:  if string contains


Humour me. I knew how to do this. I want to parse $searchenquiry and see if it contains "searchenquiry=".
Good grief, sorry.
John

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




--
John Taylor-Johnston
-----------------------------------------------------------------------------
"If it's not Open Source, it's Murphy's Law."

 ' ' '    Collège de Sherbrooke:
ô¿ô    http://www.collegesherbrooke.qc.ca/languesmodernes/
   -     819-569-2064

 °v°   Bibliography of Comparative Studies in Canadian, Québec and Foreign Literatures
/(_)\  Université de Sherbrooke
 ^ ^   http://compcanlit.ca/ T: 819.569.2064


[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