Finding the month, day, and year : getdate « Date « PHP






Finding the month, day, and year

 
<?php
$a = getdate();
printf('%s %d, %d',$a['month'],$a['mday'],$a['year']);
?>
  
  








Related examples in the same category

1.Acquiring Date Information with getdate()
2.Return array from getdate( )
3.The Associative Array Returned by getdate()
4.To obtain a number corresponding to the day of the week, use getdate() instead:
5.getdate() with a specific timestamp