note 6162 modified in Mathematical functions by ronabop

From: Date: Wed, 13 Sep 2000 16:15:59 +0000
Subject: note 6162 modified in Mathematical functions by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-4826@lists.php.net to get a copy of this message
WHat are Yall doing?! Here is a simple example to show how many weeks and days there are in any given number of days. echo "In ".$daze." days "; $weaks = ( ($daze - ($daze % 7)) / 7 ); $daze = ($daze % 7); echo "there are ".$weaks." weeks"; echo " and ".$daze." days!"; EXAMPLE FOR: $daze=46 In 46 days there are 6 weeks and 4 days! http://www.php.net/manual/mathematical-functions.php

« previous php.notes (#4826) next »