RecursiveDirectoryIterator::getSubPathname

Get sub path and name

&reftitle.description; public `string` `RecursiveDirectoryIterator::getSubPathname`

Gets the sub path and filename.

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

The sub path (sub directory) and filename.

&reftitle.examples;

### `getSubPathname` example

          $directory = '/tmp';

          $it = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($directory));

          foreach ($it as $file) {
              echo 'SubPathName: ' . $it->getSubPathname() . "\n";
              echo 'SubPath:     ' . $it->getSubPath() . "\n\n";
          }

&example.outputs.similar;

         SubPathName: fruit/apple.xml
         SubPath:     fruit

         SubPathName: stuff.xml
         SubPath:

         SubPathName: veggies/carrot.xml
         SubPath:     veggies

&reftitle.seealso;

- `RecursiveDirectoryIterator::getSubPath`
- `RecursiveDirectoryIterator::key`