echo "<u><i>Before:</i></u><br />\$str<br /><br />"; \$text = \$Arabic->swapAe(\$str); echo "<u><i>After:</i></u><br />\$text<br /><br /><b>Albert Einstein</b>"; ?> END; highlight_string($code); ?> </div> <br /> <div class="Paragraph"> <h2 dir="ltr">Example Output 3:</h2> <?php $examples = array("ff'z g;k fefhj", "FF'Z G;K FEFHJ", 'ٍمخصمغ لاعف سعقثمغ', 'sLOWLY BUT SURELY'); foreach ($examples as $example) { $fix = $Arabic->fixKeyboardLang($example); echo '<font color="red">' . $example . '</font> => '; echo '<font color="blue">' . $fix . '</font><br />'; } ?> </div><br /> <div class="Paragraph"> <h2>Example Code 3:</h2> <?php $code = <<<END <?php require '../../Arabic.php'; \$Arabic = new I18N_Arabic('KeySwap'); \$examples = array("ff'z g;k fefhj", "FF'Z G;K FEFHJ", 'ٍمخصمغ لاعف سعقثمغ', 'sLOWLY BUT SURELY');