#91. PHP Getdate, Localtime, Gettimeofday Function

 How to work PHP Getdate, Localtime, Gettimeofday Function?

Syntax:




Run Code:

<?php

// $oldDate = mktime(0,0,0,03,12,2011);

// $date = getdate($oldDate);

// echo $date['month'] . "-".$date['year'] ;

// echo "<pre>";
// print_r(getdate());
// echo "</pre>";

// echo "<pre>";
// print_r(gettimeofday());
// echo "</pre>";

// $date = gettimeofday();
// echo $date['sec']

// echo gettimeofday(true);

echo "<pre>";
print_r(localtime(time(),true));
echo "</pre>";
?>


Comments

Popular posts from this blog

#30. PHP Recursive Function