WP_CLI\Iterators

CSV::count()publicWP-CLI 1.0

Method of the class: CSV{}

No Hooks.

Return

null. Nothing (null).

Usage

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

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

public function count() {
	$file = new SplFileObject( $this->filename, 'r' );
	$file->seek( PHP_INT_MAX );
	return $file->key() + 1;
}