Answers for "php how to display first and last day with w number"

PHP
1

first day of month php

$first_day = date('Y-m-01');   $last_day = date('Y-m-t');
Posted by: Guest on August-29-2021
1

php get first last loop

foreach ($array as $key => $element) {
    if ($key === array_key_first($array)) {
        echo 'FIRST ELEMENT!';
    }

    if ($key === array_key_last($array)) {
        echo 'LAST ELEMENT!';
    }
}
Posted by: Guest on December-03-2021

Code answers related to "php how to display first and last day with w number"

Browse Popular Code Answers by Language