WordPress at a glance
function is not described

_cleanup_header_comment() WP 2.8.0

Strip close comment and close php tags from file headers used by WP.

No Hooks.

Return

String.

Usage

_cleanup_header_comment( $str );
$str(string) (required)
Header comment to clean up.

Notes

Changelog

Since 2.8.0 Introduced.

Code of cleanup header comment: wp-includes/functions.php WP 5.2.2

<?php
function _cleanup_header_comment( $str ) {
	return trim( preg_replace( '/\s*(?:\*\/|\?>).*/', '', $str ) );
}