demo_func_filesystem_fileperms2.php:
<!DOCTYPE html> <html> <body> <?php echo substr(sprintf("%o", fileperms("test.txt")),-4); ?> </body> </html>