Location: PHPKode > scripts > Crystal > Crystal/Validation/AlphaNumeric.php
<?php
/**
 * Crystal DBAL
 *
 * An open source application for database manipulation
 *
 * @package		Crystal DBAL
 * @author		Martin Rusev
 * @link		http://crystal.martinrusev.net
 * @since		Version 0.1
 * @version     0.1
 */

// ------------------------------------------------------------------------
class Crystal_Validation_AlphaNumeric
{

    function __construct($param = null)
    {

       
        if(ctype_alnum($param))
         {
			
            $this->result = TRUE;
			
        }
	else
	{
			
            $this->result = FALSE;
			
         
	}
        
    }
	
	public function __toString() 
	{
        return (string)$this->result;
    }
        
    
    
}
/* END OF FILE */
Return current item: Crystal