From fa0afbfe18aa86e57f9fd2fffb01b37f6c2f7200 Mon Sep 17 00:00:00 2001 From: whwyy Date: Tue, 19 Dec 2023 14:31:41 +0800 Subject: [PATCH] eee --- function.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/function.php b/function.php index ae547888..1ec1afa3 100644 --- a/function.php +++ b/function.php @@ -28,6 +28,21 @@ interface Arrayable } +if (!function_exists('json_validator')) { + + + /** + * @param string $data + * @return bool + */ + function json_validator(string $data): bool + { + return is_null(json_decode($data)); + } + +} + + if (!function_exists('application')) { /**