SHARE
TWEET

Untitled

a guest Jun 18th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $find = 'oo';
  2. $directory = 'd:\test';
  3.     $search = new RecursiveIteratorIterator(
  4.             new RecursiveDirectoryIterator($directory, FilesystemIterator::SKIP_DOTS),
  5.             RecursiveIteratorIterator::SELF_FIRST
  6.         );
  7.  
  8.  
  9.     $search = new RegexIterator($search, '/'.$find.'/i');
  10.      
  11. d:testbar foo;
  12. d:testfoo bar;
  13. d:testtext.txt;
  14. d:testfoo.txt;
  15.      
  16. d:testfoo bar;
  17. d:testbar foo;
  18. d:testfoo.txt;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top