php - Filter array of filepaths if value contains an id substring …
https://stackoverflow.com/questions/25643577/filter-array-of-filepaths-if-value-contains-an-id-substring-found-in-an-array-of
WEBSep 3, 2014 · Since your blacklist of substrings comes at the start of the filename and must be a complete-integer match, here is a way to strip down each filepath to its relevant component and compare it against a lookup array for a slight performance boost. Code: ( Demo) $array = [. '../fish/cod/123709-sdfgsdfgvsadfg.pdf',
DA: 77 PA: 91 MOZ Rank: 40 Up or Down: Up