Calculate week in PHP

Use this script to calculate a week in PHP

<?php
$date = mktime(0, 0, 0, 01,27, 2011);
$week = (int)date(‘W’, $date);
?>


To seek challenging roles and to achieve excellence in the field of Open Source Web Technology with a profound spirit of commitment and dedication.

Share This Post

Related Articles

© 2017 Sumit Bansal. All rights reserved. Site Admin · Entries RSS · Comments RSS
Powered by WordPress · Designed by Theme Junkie