hasError()) { // Print last error and exit. die($cf->getLastError()); } if ($cf->isSpam()) { // $text is spam. echo "Spam!"; } else { // $text is NOT spam. echo "Ham!"; } ?>