Skip to content

Commit 5c0bb9c

Browse files
update readme
Comparison operator changed on version 2.0
1 parent 150ebb1 commit 5c0bb9c

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

README.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,10 @@ $form = new \UltimateValidator\UltimateValidator($_POST, 'POST');
100100
-> beforeIssetFunc |callable -- before form is set
101101
-> afterIssetFunc |callable -- after form is set
102102
103-
** FLAGS : **
103+
** FLAGS|DATA TYPE : **
104104
** HTML_INPUT_NAME : **
105-
** OPERATOR **
105+
** COMPARISON OPERATOR : **
106+
** VALUE TO COMPARE TO **
106107
```
107108

108109
- data - Data validation handling
@@ -111,10 +112,10 @@ $form = new \UltimateValidator\UltimateValidator($_POST, 'POST');
111112
112113
$form->submit([
113114
"string:name" => 'Please enter a name',
114-
"string:name:<5" => 'Name should be more than five(5) characters',
115+
"string:name:<:5" => 'Name should be more than five(5) characters',
115116
"email:email" => 'Please enter a valid email address',
116117
"int:age" => 'Age is required',
117-
"i:age:<16" => 'Sorry! you must be 16yrs or above to use this site'
118+
"i:age:<:16" => 'Sorry! you must be 16yrs or above to use this site'
118119
], false)
119120
```
120121

@@ -153,10 +154,12 @@ $form = new \UltimateValidator\UltimateValidator($_POST, 'POST');
153154

154155
## OPERATOR STATEMENT
155156

156-
- Supports 4 operational statement
157+
- Supports 6 operational statement
157158
```
158159
==
160+
===
159161
!=
162+
!==
160163
>
161164
<
162165
```
@@ -175,10 +178,10 @@ $form = new \UltimateValidator\UltimateValidator($_POST, 'POST');
175178
```
176179
$form->submit([
177180
"s:name" => 'Please enter a name',
178-
"s:name:<5" => 'Name should be more than five(5) characters',
181+
"s:name:<:5" => 'Name should be more than five(5) characters',
179182
"e:email" => 'Please enter a valid email address',
180183
"i:age" => 'Age is required',
181-
"i:age:<16" => 'Sorry! you must be 16yrs or above to use this site',
184+
"i:age:<:16" => 'Sorry! you must be 16yrs or above to use this site',
182185
])->error(function($response){
183186
184187
$response->param; //param property
@@ -200,10 +203,10 @@ $form = new \UltimateValidator\UltimateValidator($_POST, 'POST');
200203
```
201204
$form->submit([
202205
"s:name" => 'Please enter a name',
203-
"s:name:<5" => 'Name should be more than five(5) characters',
206+
"s:name:<:5" => 'Name should be more than five(5) characters',
204207
"e:email" => 'Please enter a valid email address',
205208
"i:age" => 'Age is required',
206-
"i:age:<16" => 'Sorry! you must be 16yrs or above to use this site',
209+
"i:age:<:16" => 'Sorry! you must be 16yrs or above to use this site',
207210
])->error(function($response){
208211
209212
$response->param; //param property

0 commit comments

Comments
 (0)