How does php know how many days there are this month?
This article mainly introduces php how to know how many days this month, the article is very detailed, has a certain reference value, interested friends must read it!
How to get the number of days of this month by php: 1. Create a PHP sample file; 2. Get the current date by "date ('Ymurmmurd`);"; 3, use "date (" t ", strtotime ($date));" get the number of days of this month. "
This article operating environment: windows7 system, PHP7.1 version, Dell G3 computer.
The code is as follows: