tags:

views:

60

answers:

1
1   <?php
2   // get number weeks of year for 2008
3   // result 52
4   echo date("W", mktime(0,0,0,12,28,2008));
5   ?>

How can i get the above result , using zend functions .also how can i get hte current year using zend

+1  A: 
<?php 
$date = new Zend_Date();
$date->setDay(31)->setMonth(12);
echo $date->toString("w");
?>
viMaL