diff options
Diffstat (limited to 'vendor/pear/text_languagedetect/docs/errorhandling.php')
-rw-r--r-- | vendor/pear/text_languagedetect/docs/errorhandling.php | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/vendor/pear/text_languagedetect/docs/errorhandling.php b/vendor/pear/text_languagedetect/docs/errorhandling.php deleted file mode 100644 index b68e42476..000000000 --- a/vendor/pear/text_languagedetect/docs/errorhandling.php +++ /dev/null @@ -1,15 +0,0 @@ -<?php -/** - * How to handle errors - */ -require_once 'Text/LanguageDetect.php'; -require_once 'Text/LanguageDetect/Exception.php'; - -try { - $ld = new Text_LanguageDetect(); - $lang = $ld->detectSimple('Das ist ein kleiner Text'); - echo "Language is: $lang\n"; -} catch (Text_LanguageDetect_Exception $e) { - echo 'An error occured! Message: ' . $e . "\n"; -} -?>
\ No newline at end of file |