Skip to content

Commit

Permalink
docs: improve sample code
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Apr 12, 2023
1 parent baebc18 commit 1987c40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion user_guide_src/source/libraries/validation/012.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php

$validation->check($value, 'required');
if ($validation->check($value, 'required')) {
// $value is valid.
}

0 comments on commit 1987c40

Please sign in to comment.