Php Verifique si los fines de semana

// this will return "true" if its sunday or saturday or false it its not a weekend
function is_sunday(){
	$today = date("Y-m-d");
	$dt1 = strtotime($today);
	$dt2 = date("l", $dt1);
	$dt3 = strtolower($dt2);
	if(($dt3 == "saturday" ) || ($dt3 == "sunday")){
		return true;
	}else{
		return false;
	}
}
MrBeanDev