Skip to content

Commit e24715c

Browse files
committed
IHF: Email helpers docs added.
1 parent 57d07de commit e24715c

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ Provides Laravel-specific and pure PHP helper functions.
2828
- [Dump](#dump)
2929
- [get_dump](#get_dump)
3030
31+
- [Email](#email)
32+
- [is_email](#is_email)
33+
- [to_rfc2822_email](#to_rfc2822_email)
34+
3135
- [Format](#format)
3236
- [format_bytes](#format_bytes)
3337
@@ -91,6 +95,17 @@ $dump = get_dump($var);
9195
// ]
9296
```
9397
98+
## Email
99+
100+
#### `is_email()`
101+
102+
Checks if specified string is valid email address or not:
103+
```php
104+
$isEmail = is_email('john.doe@example.com');
105+
106+
// true
107+
```
108+
94109
## Format
95110
96111
#### `format_bytes()`

0 commit comments

Comments
 (0)