Skip to content

cPeriod::ScanFrom()

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

Method ScanFrom( )

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

SanPrintOn() reads the starting and the ending date from the file pointer $fptr

Example:

use libdatephp;

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

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

$p1->ScanFrom( $fptr );

Arguments

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

Clone this wiki locally