Answers for "determine file types in php"

PHP
9

php get filetype

<?php
echo filetype('/etc/passwd');  // file
echo filetype('/etc/');        // dir
?>
Posted by: Guest on February-03-2021

Browse Popular Code Answers by Language