Zend\Filter\Int allows you to transform a sclar value which contains into an integer.
There are no additional options for Zend\Filter\Int.
A basic example of usage is below:
1 2 3 | $filter = new Zend\Filter\Int();
print $filter->filter('-4 is less than 0');
|
This will return ‘-4’.
The source code of this file is hosted on GitHub. Everyone can update and fix errors in this document with few clicks - no downloads needed.