Acquiring Date Information with getdate() : getdate : Development PHP Source Code


PHP Source Code » Development » getdate »

 

Acquiring Date Information with getdate()



<html>
<head>
<title>Acquiring date information with getdate()</title>
</head>
<body>
<?php
$date_array = getdate()
foreach $date_array as $key => $val ){
    print "$key = $val<br>";
}
?>
<hr>
<?
print "Today's date: $date_array[mday]/$date_array[mon]/$date_array[year]<p>";
?>
</body>
 </html>

           
       



HTML code for linking to this page:

    PHP Function Reference -> Users Code Examples / Notes - > getdate:
  • getdate
Follow Navioo On Twitter

PHP Source Code

 Navioo Development
» getdate