(int) / intval() / floatval()
Converts text/value to a number.
Syntax
(int)$value · intval($value)
Description
(int) or intval converts to integer, floatval to float.
Example
Loading editor…
Expected output
50 7
When to use?
Accounting for form/input text.