Waking Up PHP
by Stephen Blair on Apr.25, 2009, under A PHP Life
My PHP Coffee Mug script has inspired a new category on my blog called A PHP Life and here is the latest addition!
Stay tuned for more to come!
// Waking Up PHP | Stephen R. Blair | www.srblair.com
function morningAlarm() {
//The snooze button has not been smashed yet
$snoozeCount = 0;
//The alarm is buzzing
if(isset($alarm)) {
if($snoozeCount <= 3) { //If you have not hit the snooze button at least 3 times...
$snoozeCount++; //Go ahead and hit it again!
} else {
$wakeUp = true; //Otherwise, wake your ass up!
}
}
}


















