To survive in this world, we hold close to us those on whom we depend. We trust in them our hopes, our fears... But what happens when trust is lost? Where do we run, when things we believe in vanish before our eyes? When all seems lost, the future unknowable, our very existence in peril... All we can do is run.
If you want to know that the argument supplied is a file or not use is_file() file_exists() will take both file and directory as input and return true if they exists. So, unless you specifically want to check if the argument passed is a file use is_file otherwise use file_exists()
Comments