fileperms

PHP 4, PHP 5, PHP 7, PHP 8
fileperms - Gets file permissions
Manual
Code Examples

Example #1 Display permissions as an octal value

Result: 1777 0644
PHP Version:

Example #2 Display full permissions

Result: -rw-r--r--
PHP Version: