DirectoryIterator::getInode

Get inode for the current DirectoryIterator item

&reftitle.description; public `int` `DirectoryIterator::getInode`

Get the inode number for the current `DirectoryIterator` item.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

Returns the inode number for the file.

&reftitle.examples;

### `DirectoryIterator::getInode` example

This example displays the inode number for the directory containing the script.

    <?php
    $iterator = new DirectoryIterator(dirname(__FILE__));
    echo $iterator->getInode();
    ?>

&reftitle.seealso;

- `DirectoryIterator::getGroup`
- `DirectoryIterator::getOwner`
- `DirectoryIterator::getPerms`
- `fileinode`