Skip to content

Commit 0dbc0a3

Browse files
author
Wazabii
committed
Guide
1 parent 423c8b2 commit 0dbc0a3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Inp::value("Lorem ipsum dolor")->length(1, 160);
2929
Inp::value("[email protected]")->email();
3030
```
3131
### Check if is valid phone
32-
Will allow only numbers and some characters like (”-”, ”+” and ” ”).
32+
Will allow only numbers and some characters like ("-", "+" and " ").
3333
```php
3434
Inp::value("+46709676040")->phone();
3535
```
@@ -55,15 +55,17 @@ Inp::value("#000000")->hex();
5555
```
5656
### Check date and date format
5757
```php
58-
Inp::value("2022/02/13 14:15")->date(”Y/m/d H:i”);
58+
Inp::value("2022/02/13 14:15")->date("Y/m/d H:i");
59+
// The date argument is the expected date format (will also take time)
5960
```
6061
### Check date, date format and is between a range
6162
```php
62-
Inp::value("2022/02/13 - 2022/02/26")->date(”Y/m/d”);
63+
Inp::value("2022/02/13 - 2022/02/26")->dateRange("Y/m/d");
64+
// The dateRange argument is the expected date format (will also take time)
6365
```
6466
### Check if persons is at least 18 years old or older.
6567
```php
66-
Inp::value("1988-05-22")->age(”18”);
68+
Inp::value("1988-05-22")->age("18");
6769
```
6870
### Check if is a valid domain name
6971
```php

0 commit comments

Comments
 (0)