- date: documentation ( source)
- strtotime: documentation ( source)
- range: documentation ( source)
- join: documentation ( source)
<?php
$dt = new DateTime('first Monday of this month');
echo $dt->format('W');
$month = "10";
$year = "2014";
$beg = (int) date('W', strtotime("first thursday of $year-$month"));
$end = (int) date('W', strtotime("last thursday of $year-$month"));
print(join(', ', range($beg, $end)));