开发者

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

开发者 https://www.devze.com 2022-12-17 10:00 出处:网络
1<?php 2// get number weeks of year for 2008 3// result 52 4ec开发者_如何转开发ho date(\"W\", mktime(0,0,0,12,28,2008));
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

精彩评论

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

关注公众号