Example Output:

Tuesday 09th February 2010 07:52:48 AM

الثلاثاء 25 صفر 1431 07:52:48 صباحاً

الثلاثاء 09 شباط 2010 07:52:48 صباحاً

الثلاثاء 09 فبراير 2010 07:52:48 صباحاً

الثلاثاء 09 شباط/فبراير 2010 07:52:48 صباحاً

الثلاثاء 09 النوار 1378 07:52:48 صباحاً

Example Code:

<?php
    date_default_timezone_set
('UTC');
    
$time time();
    
    echo 
date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';

    include(
'I18N_Arabic.php');
    
$Arabic = new I18N_Arabic('Date');

    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';
    
    
$Arabic->setMode(2);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';
    
    
$Arabic->setMode(3);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';
    
    
$Arabic->setMode(4);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
    echo 
'<br /><br />';
    
    
$Arabic->setMode(5);
    echo 
$Arabic->date('l dS F Y h:i:s A'$time);
?>

Total execution time is 0.0035560131072998 seconds
Amount of memory allocated to this script is 381360 bytes

Names of included or required files:

Related Class Documentation