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.
More Related Contents:
- How to create a chat program using php and mysqli for chatting [closed]
- BETTER WAY #PHP MVC [closed]
- The 3 different equals
- How can I access an array/object?
- How to get numeric types from MySQL using PDO?
- PHP & mySQL: Year 2038 Bug: What is it? How to solve it?
- MySQL and PHP: UTF-8 with Cyrillic characters [duplicate]
- What is so wrong with extract()?
- php pdo: get the columns name of a table
- Laravel view not found exception
- Class Foo\Bar\Baz located in ./foo/bar/utility/baz.php does not comply with psr-4 autoloading standard. Skipping
- PDO error message? [duplicate]
- How to put php inside JavaScript?
- Check if string contains a value in array [duplicate]
- Symfony2 AJAX Login
- can I get the unicode value of a character or vise versa with php?
- Laravel 5.4 field doesn’t have a default value
- What is PHPSESSID?
- Bind Param with array of parameters
- Dealing with timezones in PHP
- Include constant in string without concatenating
- Outputting all PHP errors to database not error_log
- Upload multiple files in CodeIgniter
- getting the value of an extra pivot table column laravel
- Use keyword in functions – PHP [duplicate]
- PHP include absolute path
- regular expression and forward slash
- MYSQL select a piece of a string and order by that piece
- Getting data from post array in CodeIgniter
- Fatal error: Call to undefined function mysql_connect() in C:\Apache\htdocs\test.php on line 2