Re: IF statement question...
| From: | Oliver Hankeln | Date: | Wed, 19 May 2004 12:13:40 +0000 |
| Subject: | Re: IF statement question... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-186525@lists.php.net to get a copy of this message | ||
Tristan.Pretty@risk.sungard.com wrote:
Is it possible to request that a string CONTAINS another string...? EG: $string = "1, 2, 3, 7, 8, 9"; if ($string CONTAINS "7") {int strpos ( string haystack, string needle [, int offset]) is what you are looking for. HTH, Oliver Hankeln// Do stuff}