note 25150 deleted from function.strpos by didou

From: Date: Wed, 22 Oct 2003 09:33:17 +0000
Subject: note 25150 deleted from function.strpos by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-59107@lists.php.net to get a copy of this message
Note Submitter: n.joyce_nospam_1(at)ntl_nospam_world.com ---- Why don't you just do this ? -- if (($pos = strpos($haystack, $needle, $offset)) !== false) { // found } else { // not found } // end if -- Compact and easy ?

« previous php.notes (#59107) next »