note 52209 deleted from function.strpos by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 16:40:42 +0000 |
| Subject: | note 52209 deleted from function.strpos by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-154876@lists.php.net to get a copy of this message | ||
Note Submitter: yess at eleethal dot com
----
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.
?>