Answers for "php is this month"

PHP
-1

get month days in php

echo cal_days_in_month(CAL_GREGORIAN, 8, 2009);
Posted by: Guest on October-19-2020
0

php check new month

You can use date_parse to parse almost any date format into its components. For example:

$date = date_parse("2012-01-02");
var_dump($date);
Will output:

array(12) {
  ["year"]=>
  int(2012)
  ["month"]=>
  int(1)
  ["day"]=>
  int(2)
  ["hour"]=>
  bool(false)
Posted by: Guest on December-31-2021

Browse Popular Code Answers by Language