开发者

How to get the number of weeks in a particular year? Also how to get the current year using zend?

1   <?php
2   // get number weeks of year for 2008
3   // result 52
4   ec开发者_如何转开发ho 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


<?php 
$date = new Zend_Date();
$date->setDay(31)->setMonth(12);
echo $date->toString("w");
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜