Пример #1
0
    
    \$text1 = '1975/8/2 9:43 صباحا';
    \$text2 = \$Arabic->int2indic(\$text1);
    
    echo "<p dir=ltr align=center>\$text1<br />\$text2</p>";
END;
highlight_string($code);
?>
</div><br />

<div class="Paragraph" dir="rtl">
<h2 dir="ltr">Example Output 6: ترتيب لمعدود مؤنث منصوب أو مجرور</h2>
<?php 
$Arabic->setFeminine(2);
$Arabic->setFormat(2);
$Arabic->setOrder(2);
$integer = '17';
$text = $Arabic->int2str($integer);
echo "<p dir=ltr align=center>{$integer}<br />{$text}</p>";
?>

</div><br />
<div class="Paragraph">
<h2>Example Code 6:</h2>
<?php 
$code = <<<END
<?php
    require '../../Arabic.php';
    \$Arabic = new I18N_Arabic('Numbers');
    
    \$Arabic->setFeminine(2);