Method glob()
- Method glob
boolglob(stringglob,stringstr)
boolglob(array(string)glob,stringstr)
array(string) glob(stringglob,array(string)str)
array(string) glob(array(string)glob,array(string)str)- Description
Match strings against a glob pattern.
- Parameter
glob stringThe glob pattern. A question sign ('?') matches any character and an asterisk ('*') matches a string of arbitrary length. All other characters only match themselves.
array(string)the function returns true, or keeps a string, if any of the given patterns match
- Parameter
str string1is returned if the stringstrmatchesglob,0(zero) otherwise.array(string)All strings in the array
strare matched againstglob, and those that match are returned in an array (in the same order).- See also