Checks if resource is a file.
Parameters
$file
stringrequired- File path.
Source
public function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |
Checks if resource is a file.
$file
stringrequiredpublic function is_file( $file ) {
return $this->exists( $file ) && ! $this->is_dir( $file );
}
Version | Description |
---|---|
2.5.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.