This section of PHP tutorial, we illustrates you the how to use of filetype functions and its examples.
This section of PHP tutorial, we illustrates you the how to use of filetype functions and its examples.
Syntax
string filetype(file_name)
Code
<?php
$name=filetype("c:/rose1/ram.txt");
echo "file
type is
".$name;
?>
Output
file type is file