Skip to content

Commit

Permalink
docs: add check() method parameter explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 13, 2023
1 parent a492f04 commit 2962b16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion user_guide_src/source/libraries/validation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,10 @@ you previously set, so ``setRules()``, ``setRuleGroup()`` etc. need to be repeat
Validating 1 Value
==================

Validate one value against the rules:
The ``check()`` method validates one value against the rules.
The first parameter ``$value`` is the value to validate. The second parameter
``$rule`` is the validation rules.
The optional third parameter ``$errors`` is the the custom error message.

.. literalinclude:: validation/012.php

Expand Down

0 comments on commit 2962b16

Please sign in to comment.