PHP code example of org_heigl / dateintervalcomparator
1. Go to this page and download the library: Download org_heigl/dateintervalcomparator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
org_heigl / dateintervalcomparator example snippets
$comparator = new Org_Heigl\DateIntervalComparator\DateIntervalComparator()
echo $comparator->compare(new Dateinterval('P1Y'), new DateInterval('P1M'));
// 1
$comparator->safe(true)