index = $index; } public function validate(&$arr, $interchange) { if (!ctype_alnum($arr[$this->index])) { throw new HTMLPurifier_ConfigSchema_Exception($arr[$this->index] . ' in '. $this->index .' must be alphanumeric'); } } }