Re: if string contains
| From: | John Taylor-Johnston | Date: | Fri, 30 Sep 2005 04:59:07 +0000 |
| Subject: | Re: if string contains | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-223440@lists.php.net to get a copy of this message | ||
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-- 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-----Original Message----- From: John Taylor-Johnston [mailto:John.Taylor-Johnston@cegepsherbrooke.qc.ca] Sent: Friday, 30 September 2005 2:26 PM To: php-general@lists.php.net Cc: John.Taylor-Johnston@cegepsherbrooke.qc.ca Subject: [PHP] 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