fnmatch
Support for fnmatch() doesn't exist on Windows pre PHP 5.3.
Description
Returns (int)
Parameters (2)
- 0. $pattern
- The pattern.
- 1. $string
- The string.
Usage
if ( !function_exists( 'fnmatch' ) ) { require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; } // The pattern. $pattern = null; // The string. $string = null; // NOTICE! Understand what this does before running. $result = fnmatch($pattern, $string);
Defined (1)
The function is defined in the following location(s).
- /inc/aioseop_functions.php
- function fnmatch( $pattern, $string ) {
- return preg_match( '#^' . strtr( preg_quote( $pattern, '#' ), array(
- '\*' => '.*',
- '\?' => '.',
- ) ) . "$#i", $string );
- }