find() public static method

Finds the first file that match the filename in any of the specified directories.
public static find ( string $filename, array $dirs = [] ) : string
$filename string
$dirs array
return string
示例#1
0
 public function testFind()
 {
     $this->assertEquals(realpath(__FILE__), Utils::find(basename(__FILE__), __DIR__));
 }