Example Output:

Saturday 31st July 2010 11:46:12 PM

السبت 21 شعبان 1431 11:46:12 مساءً

السبت 31 تموز 2010 11:46:12 مساءً

السبت 31 يوليو 2010 11:46:12 مساءً

السبت 31 تموز/يوليو 2010 11:46:12 مساءً

السبت 31 ناصر 1378 11:46:12 مساءً

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.031190872192383 seconds
Amount of memory allocated to this script is 452280 bytes

Names of included or required files:

Related Class Documentation