WP_CLI\Iterators

CSV::rewind()publicWP-CLI 1.0

Method of the class: CSV{}

No Hooks.

Return

null. Nothing.

Usage

$CSV = new CSV();
$CSV->rewind();

CSV::rewind() code WP-CLI 2.8.0-alpha

public function rewind() {
	rewind( $this->file_pointer );

	$this->columns = fgetcsv( $this->file_pointer, self::ROW_SIZE, $this->delimiter );

	$this->current_index = -1;
	$this->next();
}