* include('./I18N/Arabic.php'); * $obj = new I18N_Arabic('WordTag'); * * $hStr=$obj->highlightText($str,'#80B020'); * * echo $str . '' . $hStr . ''; * * $taggedText = $obj->tagText($str); * * foreach($taggedText as $wordTag) { * list($word, $tag) = $wordTag; * * if ($tag == 1) { * echo "$word is Noun, "; * } * * if ($tag == 0) { * echo "$word is not Noun, "; * } * } *