Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alceanicu authored Aug 6, 2019
1 parent e24519a commit e9ca91c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ if ($cnp->isValid()) {
} else {
echo "CNP {$cnpToBeValidated} is invalid" . PHP_EOL;
}

// OR

echo "CNP {$cnpToValidate} is " () . Cnp::validate($cnpToValidate) ? 'valid' : 'invalid';
?>
```
#### How to use with YII2?
Expand Down

0 comments on commit e9ca91c

Please sign in to comment.