which.php
Table of Contents
Functions
Functions
which()
Finds the instances of the specified command in the system path.
which(string $command[, array<string|int, string> $paths = [] ][, array<string|int, string> $extensions = [] ]) : ResultSet
Parameters
- $command : string
-
The command to be resolved.
- $paths : array<string|int, string> = []
-
The system path. Defaults to the
PATHenvironment variable. - $extensions : array<string|int, string> = []
-
The executable file extensions. Defaults to the
PATHEXTenvironment variable.
Return values
ResultSet —The search results.