Skip to content

Commit 87c154e

Browse files
committed
Update README
1 parent 3ab29e9 commit 87c154e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,18 @@ Inp::value($obj)->isObject();
230230
Inp::value($resource)->isResource();
231231
```
232232

233+
- **Json**:
234+
```php
235+
Inp::value($jsonStr)->isJson();
236+
```
237+
238+
- **HTML Document**:
239+
```php
240+
Inp::value($jsonStr)->isFullHtml();
241+
```
242+
243+
244+
233245
### Validate if value is boolean or interpretable as a boolean
234246
- **Is Boolean**:
235247
```php

0 commit comments

Comments
 (0)