method analyzeFolder documentation in bbn\Appui\I18n

Returns an array containing the strings found in the given folder

function(string $folder = '.', bool $deep = false) { $res = []; if (\is_dir($folder)) { $files = $deep ? bbn\File\Dir::scan($folder, 'file') : bbn\File\Dir::getFiles($folder); foreach ($files as $f){ $words = $this->analyzeFile($f); foreach ($words as $word){ if (!isset($res[$word])) { $res[$word] = []; } if (!in_array($f, $res[$word])) { $res[$word][] = $f; } } } } return $res; }

Returns an array containing the strings found in the given folder BBN is a suite of PHP and JS libraries and VueJS components - all open-source! bbn.io, build applications, the quick way

This website uses cookies to ensure you get the best experience on our website.