From 15783051bffea2f09f0788bfca1bfcbfd6bb13b2 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 8 Oct 2020 20:19:38 +0200 Subject: [PATCH] add preferred function --- standards/php.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/standards/php.md b/standards/php.md index 840b569..9427b9d 100644 --- a/standards/php.md +++ b/standards/php.md @@ -73,6 +73,12 @@ Class constants MUST have a access modifier public CONST_NAME = ...; ``` +## Preferred Functions + +### file_exists + +Instead of using `\file_exists()` the functions `\is_dir()` or `\is_file()` should be used. + ## Deprecated functions and variables The following functions and (super-) global variables MUST NOT be used.