octal_permissions($perms)
Parameters: |
|
---|---|
Returns: |
Octal permissions string |
Return type: |
string |
Takes numeric permissions (such as is returned by fileperms()
) and returns a three character octal notation of file permissions.
echo octal_permissions(fileperms('./index.php')); // 644
Please login to continue.