PHP Date Time Tips - Part 11: Do you want to find the number of weeks in a particular year? You can use date() function with the "W" modifier. Like this:
<?php
// get number weeks of year for 2008
// result 52
echo date("W", mktime(0,0,0,12,28,2008));
?>

