Mecha CMS

Detector.

Is::file()

Check if current input is a valid file path and make sure it is exists.

2.0.02.2.0static
Is::file($x);

Example:

if (Is::file('.\path\to\file.txt')) { … }
if (Is::file('.\path\to\folder')) { … }
if (Is::file('<a>bcdef</a>')) { … }
if (Is::file([1, 2, 3])) { … }