|
|
@@ -0,0 +1,36 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<!-- Reviewed: no -->
|
|
|
+<sect2 id="zend.filter.set.int">
|
|
|
+ <title>Int</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ <classname>Zend_Filter_Int</classname> allows you to transform a sclar value which contains
|
|
|
+ into an integer.
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <sect3 id="zend.filter.set.int.options">
|
|
|
+ <title>Supported options for Zend_Filter_Int</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ There are no additional options for <classname>Zend_Filter_Int</classname>.
|
|
|
+ </para>
|
|
|
+ </sect3>
|
|
|
+
|
|
|
+ <sect3 id="zend.filter.set.int.basic">
|
|
|
+ <title>Basic usage</title>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ A basic example of usage is below:
|
|
|
+ </para>
|
|
|
+
|
|
|
+ <programlisting language="php"><![CDATA[
|
|
|
+$filter = new Zend_Filter_Int();
|
|
|
+
|
|
|
+print $filter->filter('-4 is less than 0');
|
|
|
+]]></programlisting>
|
|
|
+
|
|
|
+ <para>
|
|
|
+ This will return '-4'.
|
|
|
+ </para>
|
|
|
+ </sect3>
|
|
|
+</sect2>
|