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 1
1
# Changelog
2
2
3
- Nothing to see. Move along!
3
+ ## 0.1.0
4
+
5
+ First release.
Original file line number Diff line number Diff line change 8
8
9
9
## Example
10
10
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.
12
37
13
38
## Installation
14
39
You can’t perform that action at this time.
0 commit comments