<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect2 id="zend.filter.set.digits">
    <title>Digits</title>

    <para>
        Returns the string <varname>$value</varname>, removing all but digits.
    </para>

     <sect3 id="zend.filter.set.digits.options">
        <title>Supported options for Zend_Filter_Digits</title>

        <para>
            There are no additional options for <classname>Zend_Filter_Digits</classname>.
        </para>
    </sect3>

     <sect3 id="zend.filter.set.digits.basic">
        <title>Basic usage</title>

        <para>
            A basic example of usage is below:
        </para>

        <programlisting language="php"><![CDATA[
$filter = new Zend_Filter_Digits();

print $filter->filter('October 2009');
]]></programlisting>

        <para>
            This returns "2009".
        </para>

        <programlisting language="php"><![CDATA[
$filter = new Zend_Filter_Digits();

print $filter->filter('HTML 5 for Dummies');
]]></programlisting>

        <para>
            This returns "5".
        </para>
    </sect3>
</sect2>
