Programming Tutorial: Covering All Your Bases

Make sure you cover all your bases when reseting variables:

if ($flag == "yes") {
	$form->creationDate = null;
	$form->runCount = 0;
	$form->statusCode = 1;
} else {   
	$form->creationDate = null;
	$form->runCount = 0;
	$form->statusCode = 1;
}

Discovered by @zewillow

This entry was written by MET , posted on Wednesday March 25 2009at 08:03 am , filed under humor and tagged . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

Leave a Reply

You must be logged in to post a comment.