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 12, 2023
1 parent ae00885 commit 1c80e74
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 @@ -341,7 +341,10 @@ For example, data returned by multi select dropdown:
Validate 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 1c80e74

Please sign in to comment.