From 1987c40def19a9f95e961134c8f7dbf70f5a2861 Mon Sep 17 00:00:00 2001 From: kenjis Date: Wed, 12 Apr 2023 15:16:29 +0900 Subject: [PATCH] docs: improve sample code --- user_guide_src/source/libraries/validation/012.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/user_guide_src/source/libraries/validation/012.php b/user_guide_src/source/libraries/validation/012.php index a43f9ab1a498..9b9e89c21c87 100644 --- a/user_guide_src/source/libraries/validation/012.php +++ b/user_guide_src/source/libraries/validation/012.php @@ -1,3 +1,5 @@ check($value, 'required'); +if ($validation->check($value, 'required')) { + // $value is valid. +}