fork(2) download
  1. <?php
  2. $dtFormat = "Y-m-d H:i:s"; //MySQL Datetime format
  3. $curDT = date($dtFormat);
  4. $curTime = strtotime($curDT);
  5. $nowFormat = "Y-m-d h:i:s ";
  6. $arrEn = array('am', 'pm');
  7. $arrAr = array('ص', 'م');
  8. echo date($nowFormat).str_replace($arrEn, $arrAr,date("a", $curTime));
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
2014-09-07 02:01:12 م