WP_CLI\Iterators

CSV::countpublicWP-CLI 1.0ReturnTypeWillChange

Method of the class: CSV{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

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

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