Questions tagged «php-5.3»



3
DateInterval格式中的“ P”代表什么?
考虑以下示例从PHP手册引用的日期时间示例 <?php $date = new DateTime('2000-01-20'); $date->sub(new DateInterval('P10D')); echo $date->format('Y-m-d') . "\n"; ?> “ D”代表数天,“ P”在该格式中代表什么?
82 php  php-5.3 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.