- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
is_file() function in PHP
The is_file() function checks whether a file is a regular file. It returns TRUE if it is a regular file.
Syntax
is_file(file_path)
Parameters
file_path − The path of the file.
Return
The is_file() function returns TRUE if it is a regular file.
Example
<?php $check = "D:/info/one.txt"; if (is_file($check)) echo ("Regular file!"); else echo ("Not a regular file!"); ?>
Output
Not a regular file!
Advertisements
To Continue Learning Please Login
Login with Google