Answers for "php difference between datetime and datetimeimmutable"

PHP
0

whats the difference between using date function and DATETime in php

function weeknumber($ddate) {
    $date = new DateTime($ddate);

    return $date->format('W');
}
Posted by: Guest on February-05-2021

Code answers related to "php difference between datetime and datetimeimmutable"

Browse Popular Code Answers by Language