$directory = '/var/www/html'; $files = findRecursive($directory, 'php'); foreach ($files as $file) { echo $file . "\n"; }
$directory = '/home/user'; $directories = findRecursive($directory, null); foreach ($directories as $dir) { echo $dir . "\n"; }This code looks for all subdirectories within the specified directory and then prints their paths. It is difficult to determine the package library for this `findRecursive` function without more context. It could be part of a custom library or framework.