Search
 
SCRIPT & CODE EXAMPLE
 

PHP

php get all the mondays of the year

$endDate = strtotime($endDate);
for($i = strtotime('Monday', strtotime($startDate)); $i <= $endDate; $i = strtotime('+1 week', $i))
    echo date('l Y-m-d', $i);
Comment

PREVIOUS NEXT
Code Example
Php :: php array move first element to last 
Php :: loop through values of hash php 
Php :: delete record php mysqli 
Php :: get unique values in laravel 
Php :: teruglopende for loop php 
Php :: a backwards counting forloop 
Php :: display summernonte data with string limit laravel 
Php :: laravel display validation errors ajax 
Php :: string to float laravel 
Php :: how to forget session in laravel 
Php :: phpmyadmin import size limit 
Php :: stream_set_blocking 
Php :: php close session 
Php :: maximum execution time of 60 seconds exceeded laravel 8 
Php :: laravel force user logout 
Php :: how to insert if php in html 
Php :: deleteAll cakephp 2 
Php :: query sql in php 
Php :: get specific key value from array php 
Php :: php convert link to embed youtube 
Php :: forever loop php 
Php :: php base64 to image 
Php :: php déclarer une constante URL 
Php :: carbon date format 
Php :: Displaying all table names in php from MySQL database 
Php :: Magento 2 -Limit the length of the product name on the front end. 
Php :: if any error in blade laravel 
Php :: proper permission webserver laravel 
Php :: laravel tinker add user 
Php :: composer allowed memory size 
ADD CONTENT
Topic
Content
Source link
Name
7+1 =