예제 #1
0
파일: CharsetC.php 프로젝트: johntaa/ar-php
?>
" />
<link rel="stylesheet" type="text/css" href="style.css" media="all" />
</head>

<body>

<div class="Paragraph" dir="rtl">
<h2 dir="ltr">Example Output:</h2>
<font face="Tahoma" size="2">
<a href="CharsetC.php?charset=windows-1256">Windows-1256</a> |
<a href="CharsetC.php?charset=iso-8859-6">ISO 8859-6</a> |
<a href="CharsetC.php?charset=utf-8">UTF-8</a><br /><br />

<?php 
$text = $Arabic->convert($text);
echo $text;
?>

</font>

</div><br />
<div class="Paragraph">
<h2>Example Code:</h2>
<?php 
$code = <<<END
<?php
    \$text = 'بسم الله الرحمن الرحيم';

    require '../../Arabic.php';
    \$Arabic = new I18N_Arabic('CharsetC');