note 30815 modified in function.strpos by aidan

From: Date: Thu, 10 Jun 2004 07:01:17 +0000
Subject: note 30815 modified in function.strpos by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-70819@lists.php.net to get a copy of this message
just another workaround for the true/0 problem: <?php if (!is_int(strpos($haystack,$needle))) { //do something } ?> should also do the job --was-- just another workaround for the true/0 problem: if (!is_int(strpos($haystack,$needle))) { //do something } should also do the job http://www.php.net/manual/en/function.strpos.php

« previous php.notes (#70819) next »