Source for file iso.php
Documentation is available at iso.php
* Demonstrates how to use ISO language codes.
* The "name mode" changes the way languages are accepted and returned.
require_once 'Text/LanguageDetect.php';
//will output the ISO 639-1 two-letter language code
echo $l->detectSimple ('Das ist ein kleiner Text') . "\n";
//will output the ISO 639-2 three-letter language code
echo $l->detectSimple ('Das ist ein kleiner Text') . "\n";
Documentation generated on Mon, 11 Mar 2019 15:47:09 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|