getid3_asf::TrimTerm() – Remove terminator 00 00.

You appear to be a bot. Output may be restricted

Description

Remove terminator 00 00.

Usage

$string = getid3_asf::TrimTerm( $string );

Parameters

$string
( string ) required

Returns

string

Source

File name: wordpress/wp-includes/ID3/module.audio-video.asf.php
Lines:

1 to 7 of 7
  public static function TrimTerm($string) {
    // remove terminator, only if present (it should be, but...)
    if (substr($string, -2) === "\x00\x00") {
      $string = substr($string, 0, -2);
    }
    return $string;
  }
 

 View on GitHub View on Trac