Return to Snippet

Revision: 55571
at February 11, 2012 12:03 by poot26


Initial Code
<?php
	$minutes = date('i'); // We'll go by the minutes of the hour so that we don't have to compare to all 24 possible outcomes
	
	if($minutes == '00'){ // if the minutes are 0 which should be the top of the hour
		echo "true"; // then pass a true to the refresh function
	} else{
		echo "false"; // if not, pass a false
	}
?>

Initial URL


Initial Description
Php check for the top of the hour

Initial Title
Php check for the top of the hour

Initial Tags
php

Initial Language
PHP