WP_Comment::to_array(): array<string,

In this article

Converts object to array.

Return

array<string, mixed> Object as array.

Source

public function to_array(): array {
	/** @var Data_Array $comment */
	$comment = get_object_vars( $this );
	return $comment;
}

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.