is_writable()
The is_writable() function checks if a file or directory is writable. This is useful for validating file and directory permissions.