When I vardump a DateInterval object, in PHP 7.2.1, I get the following output:
object(DateInterval)#4 (16) {
["y"]=>
int(0)
["m"]=>
int(0)
["d"]=>
int(14)
["h"]=>
int(0)
["i"]=>
int(0)
["s"]=>
int(0)
["f"]=>
float(0)
["weekday"]=>
int(0)
["weekday_behavior"]=>
int(0)
["first_last_day_of"]=>
int(0)
["invert"]=>
int(0)
["days"]=>
int(14)
["special_type"]=>
int(0)
["special_amount"]=>
int(0)
["have_weekday_relative"]=>
int(0)
["have_special_relative"]=>
int(0)
}
There is another thread with the same question but is marked as duplicate. The link given here doesn't describe what I want to know.
NOTE: I am able to access all the properties for these DateInterval Object. I need a little knowledge about the properties not mentioned in the documentation.
Please tell me what are these properties?
- weekday
- weekday_behavior
- weekday_behavior
- first_last_day_of
- invert special_type
- special_amount
- have_weekday_relative
- have_special_relative