public static function isValid($id, $word) { $captcha = new CaptchaImage(); if ($captcha->isValid(array('id' => $id, 'input' => $word))) { return true; } return false; }