I have a question.
I tried this code to get the first date of a week. It works but only when the number has two digits.
So when the weeknumber is 10 it works but when the weeknumber is 9 or 09 it doesn't. Does anyone here know the error?
$year =2022;
$weeknr = 10;
$timestamp = strtotime("{$year}-W{$weeknr}");
var_dump($timestamp);
var_dump(date ("d-m-Y", $timestamp));