Source for file validtester.php
Documentation is available at validtester.php
* test the validity of data according to a set of rules
* @author Stuart Prescott
* @copyright Copyright Stuart Prescott
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* @subpackage FormsLibrary
/** Load ancillary functions */
require_once 'inc/typeinfo.php';
/** type checking and data manipulation */
require_once 'inc/typeinfo.php';
* @param string $validator name of a function to call
* @param mixed $data data to be validated (string, number, array etc)
* @param integer $DEBUG (optional) debug level for extra data output
* @return boolean data is valid
$isValid =
$validator($data);
if ($DEBUG >
9) echo
"[$data, $validator, $isValid]";
Documentation generated on Tue, 06 Mar 2007 10:02:10 +0000 by phpDocumentor 1.3.0