<?php $d = new DateTime('first monday january '.date('Y'));echo $d->format("W");
Standard input is empty
01
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!