diff --git a/reference/datetime/dateinterval/construct.xml b/reference/datetime/dateinterval/construct.xml index 3791ea289b..e7dab5b155 100644 --- a/reference/datetime/dateinterval/construct.xml +++ b/reference/datetime/dateinterval/construct.xml @@ -65,8 +65,8 @@ W - weeks. These get converted into days, - so can not be combined with D. + weeks. Converted into days. + Prior to PHP 8.0.0, can not be combined with D. @@ -128,6 +128,28 @@ + + &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.0.0 + + W can be combined with D. + + + + + + + &reftitle.examples; @@ -137,32 +159,87 @@ ]]> - &example.outputs; + &example.outputs.8; - int(2) + int(0) ["m"]=> int(0) ["d"]=> - int(4) + int(9) ["h"]=> - int(6) + int(0) ["i"]=> - int(8) + 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"]=> bool(false) + ["special_type"]=> + int(0) + ["special_amount"]=> + int(0) + ["have_weekday_relative"]=> + int(0) + ["have_special_relative"]=> + int(0) +} +]]> + + &example.outputs.7; + + + int(0) + ["m"]=> + int(0) + ["d"]=> + int(2) + ["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"]=> + bool(false) + ["special_type"]=> + int(0) + ["special_amount"]=> + int(0) + ["have_weekday_relative"]=> + int(0) + ["have_special_relative"]=> + int(0) } ]]>