Get first day of current month in php [closed]

Here you go:

$thisMonthsFirstDay = (new DateTime('first day of this month'))->format('l');

Also always take a look into the documentation, you can learn a lot from there.

Leave a Comment