Location: PHPKode > scripts > param > examples/example01_intParam.php
<?php
/**
 *  @package Param
 *  @author Domenico Pontari <hide@address.com>
 *  @copyright Copyright (c) 2009, Domenico Pontari
 *  @license http://opensource.org/licenses/bsd-license.php New and Simplified BSD licenses
 *  @version 1.0
 *
 *  In this example we retrieve an int param setted as string but returned as integer
 */
 
    require_once ('../param.php');
    
    $myInt = param::register(array('name' => 'myParam', 'type' => PARAM_TYPE_INT));
    $myInt->value = "5";
    echo "Result: ";
    var_dump($myInt->value);

?>
Return current item: param