Object function reference

parent

A reference entry for parent

Object function · File

parent() ⇒ string

Provides the parent operation for this object.

Example

YASS
$parent = $file->parent()
print($parent)

Notes

Returns the full path of the parent directory.