WordPress at a glance
function is not described

getid3_id3v2::RemoveStringTerminator() public WP 1.0

{} It's a method of the class: getid3_id3v2{}

No Hooks.

Return

String.

Usage

$result = getid3_id3v2::RemoveStringTerminator( $string, $terminator );
$string(string) (required)
-
$terminator(string) (required)
-

Code of getid3_id3v2::RemoveStringTerminator() WP 5.7.2

<?php
public static function RemoveStringTerminator($string, $terminator) {
	// Null terminator at end of comment string is somewhat ambiguous in the specification, may or may not be implemented by various taggers. Remove terminator only if present.
	// https://github.com/JamesHeinrich/getID3/issues/121
	// https://community.mp3tag.de/t/x-trailing-nulls-in-id3v2-comments/19227
	if (substr($string, -strlen($terminator), strlen($terminator)) === $terminator) {
		$string = substr($string, 0, -strlen($terminator));
	}
	return $string;
}