WordPress at a glance
function is not described

WP_Query::next_comment() WP 2.2.0

Iterate current comment index and return WP_Comment object.

This is a method of the class: WP_Query

No Hooks.

Return

WP_Comment. Comment object.

Usage

$WP_Query = new WP_Query();
$var = $WP_Query->next_comment();

Changelog

Since 2.2.0 Introduced.

Code of WP Query::next comment: wp-includes/class-wp-query.php WP 5.2.3

<?php
public function next_comment() {
	$this->current_comment++;

	$this->comment = $this->comments[ $this->current_comment ];
	return $this->comment;
}