Lines Matching refs:pattern
11 /* Prototype: array glob ( string $pattern [, int $flags] );
12 Description: Find pathnames matching a pattern
44 /* loop through $patterns to match each $pattern with the files created
46 foreach($patterns as $pattern) {
48 var_dump( glob($pattern) ); // default arguments
49 var_dump( glob($pattern, GLOB_MARK) );
50 var_dump( glob($pattern, GLOB_NOSORT) );
51 var_dump( glob($pattern, GLOB_NOCHECK) );
52 var_dump( glob($pattern, GLOB_NOESCAPE) );
53 var_dump( glob($pattern, GLOB_ERR) );
57 echo "\n*** Testing glob() with pattern within braces ***\n";
67 // temp dir created to check for pattern matching the sub dir created in it
71 /* loop through $patterns to match each $pattern with the directories created
73 foreach($patterns as $pattern) {
75 var_dump( glob($pattern, GLOB_ONLYDIR) );
399 *** Testing glob() with pattern within braces ***