Answers for "php date vs datetime"

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

Browse Popular Code Answers by Language