0

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);
?>

Filed in: Computer Related, PHP Scripts, Scripts, Web Development Tips Tags: ,

Related Posts

Bookmark and Promote!

© 2012 Sumit Bansal. All rights reserved. XHTML / CSS Valid.