<slide>
<title>Parsing Input Parameters</title>

<example inline="2"><![CDATA[
PHP_FUNCTION(rdp_simplify)
{   
    *zval*      *points_array;
    *double*     epsilon;  

    *ZEND_PARSE_PARAMETERS_START*(2, 2)
        Z_PARAM_*ARRAY*(points_array)
        *Z_PARAM_*DOUBLE(epsilon)
    ZEND_PARSE_PARAMETERS_END();
]]></example>

<break lines="3"/>

<list>
    <bullet>A different macro for each different data type</bullet>
    <bullet>Matched with a C data type</bullet>
    <bullet>Tests for type matches</bullet>
    <bullet>Can deal with optional arguments too</bullet>
</list>

</slide>
