Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php check if weekends

// 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;
	}
}
Comment

PREVIOUS NEXT
Code Example
Php :: buddypress groups dropdown 
Php :: date + 14 days php 
Php :: laravel validation on gropu route 
Php :: how to import csv file in laravel 8 
Php :: type of var php 
Php :: laravel notion add enviroment 
Php :: Eine Breadcrumb-Navigation ohne Plugin erstellen 
Php :: cakephp Not Found error handle in pagination 
Php :: Augmenter la dimension des fichiers WP 
Php :: laravel sql illegal collation 
Php :: carbon parse 
Php :: php variable undefined inside function argument 
Php :: xampp pdoexception could not find driver 
Php :: laravel insert multiple rows from form 
Php :: laravel jobs cache file picking old job file 
Php :: Laravel Cache store [none] is not defined. 
Php :: php resize 
Php :: SQLSTATE[HY000]: General errorstring(58) 
Php :: Call to undefined method :last() 
Php :: webmin apache php not working 
Php :: factorial program in php 
Php :: WordPress oEmbed Funktion abschalten 
Php :: t variable error meaning in php 
Php :: laravel seed table 
Php :: current Menu Item 
Php :: How do I output top readers from MySql table 
Php :: Remove default product data tabs 
Php :: Do not call the observer when there is a model update in laravel 
Php :: codeingniter 3 not like 
Php :: strtotime last day of month 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =