Skip to content

cPeriod::PrintOn()

Rainer Stötter edited this page Apr 28, 2017 · 14 revisions

Method PrintOn( )

 public   mixed libdatephp\cPeriod::PrintOn(resource $fptr)

PrintOn() writes the starting and the ending date to the file pointer $fptr

Example:

use libdatephp;

$p1 = new cPeriod( new cDate( 11, 23, 2016 ), new cDate( 11, 25, 2016 ) );

$fptr = fopen( 'test.txt', 'w+' );

$p1->printOn( $fptr );

Arguments

  • $fptr resource - <p>the file handle of the output file</p>

See also

Clone this wiki locally