- <?php
- $file = "test.txt";
- if(is_file($file)) {
- echo ("$file is a regular file");
- } else {
- echo ("$file is not a regular file");
- }
- ?>
PHP is_file() Function – Check whether the specified filename is a regular file: |
---|
PHP is_file() Function – Check whether the specified filename is a regular file:
Output
|
Published: | November 15, 2022 |
Author: | admin |
Category: | PHP Source Code |
Views: | 25 |
This article was posted in PHP Source Code. Bookmark the permalink. Follow comments with the RSS feed for this post.Post a Comment or leave a trackback: Trackback URL.
|
|