is_file

Tells whether the filename is a regular file

&reftitle.description; `bool` `is_file` `string` `filename`

Tells whether the given file is a regular file.

&reftitle.parameters;

`filename`

- Path to the file.

&reftitle.returnvalues;

Returns &true; if the filename exists and is a regular file, &false; otherwise.

&fs.file.32bit;
&reftitle.errors; &fs.emits.warning.on.failure;
&reftitle.examples;

### `is_file` example

    <?php
    var_dump(is_file('a_file.txt')) . "\n";
    var_dump(is_file('/usr/bin/')) . "\n";
    ?>

&example.outputs;

    bool(true)
    bool(false)

&reftitle.notes; ¬e.clearstatcache; &tip.fopen-wrapper.stat;
&reftitle.seealso;

- `is_dir`
- `is_link`
- `SplFileInfo`