File tree Expand file tree Collapse file tree 2 files changed +29
-2
lines changed
Expand file tree Collapse file tree 2 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 11# Changelog
22
3- Nothing to see. Move along!
3+ ## 0.1.0
4+
5+ First release.
Original file line number Diff line number Diff line change 88
99## Example
1010
11- Nothing to see. Move along!
11+ ``` php
12+ use TypedPHP\Functions\TypeFunctions;
13+
14+ TypeFunctions\getType(1.5); // number
15+
16+ TypeFunctions\isBoolean(false); // true
17+ TypeFunctions\isBoolean("false"); // false
18+ ```
19+
20+ Functions:
21+
22+ - ` isNumber `
23+ - ` isBoolean `
24+ - ` isNull `
25+ - ` isObject `
26+ - ` isFunction `
27+ - ` isExpression `
28+ - ` isString `
29+ - ` isResource `
30+ - ` getType `
31+
32+ Caveats:
33+
34+ - ` isExpression ` will return false if ` isString ` returns true.
35+ - ` isFunction ` will return false if ` isObject ` returns true.
36+ - ` getType ` will return unknown if the argument is not matched by any of the ` is* ` functions.
1237
1338## Installation
1439
You can’t perform that action at this time.
0 commit comments