-
Notifications
You must be signed in to change notification settings - Fork 0
cPeriod::ForEachDate()
Rainer Stötter edited this page Apr 28, 2017
·
14 revisions
public mixed libdatephp\cPeriod::ForEachDate(string $func)
- Namespace : libdatephp
- Class name: cPeriod
- This method is defined by libdatephp\cPeriod
ForEachDate() execute the function $func on each date in the managed period of time
Example:
use libdatephp;
function myfunc( $dt ) { echo "\n" . $dt->AsSQL( ); }
$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) ); $func = "myfunc"; $p1->ForEachDate( $func );
- $func string - <p>the function pointer</p>
This wiki page is part of the documentation of the PHP class library libdatephp