<?php
/**
* @package Param
* @author Domenico Pontari <fairsayan@gmail.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 bool param from the URL:
* to see the result try something like http://localhost/examples/example02_boolParamFromURL.php?myBool=true
*/
require_once ('../param.php');
$myBool = param::register(array(
'name' => 'myBool',
'type' => PARAM_TYPE_BOOL,
'defaultValue' => false
));
echo "Result: ";
var_dump($myBool->value);
?>
|