note 52209 added to function.strpos

From: Date: Sun, 24 Apr 2005 15:18:25 +0000
Subject: note 52209 added to function.strpos
Groups: php.notes 
Request: Send a blank email to php-notes+get-88491@lists.php.net to get a copy of this message
Regarding James Perlman's findStr(), it's very nice although doesnt always return true when it should. I found fnmatch() to be a more accurate function for 'wildcard matching'. I'm building an IRCd and require wildmatching for many different commands. Hope this helps somone. <? findStr("12.12.12.*","12.12.12.12"); //returns null, should return true fnmatch("12.12.12.*","12.12.12.12"); //returns 1. ?> ---- Manual Page -- http://www.php.net/manual/en/function.strpos.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+52209 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+52209&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+52209&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+52209&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+52209&report=yes&reason=useless Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+52209&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+52209&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#88491) next »