WP_CLI\Iterators
CSV::count()
Method of the class: CSV{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CSV = new CSV(); $CSV->count();
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; }