getid3_lib
in package
Table of Contents
Methods
- array_max() : int|false
- array_merge_clobber() : array<string|int, mixed>|false
- array_merge_noclobber() : array<string|int, mixed>|false
- array_min() : int|false
- BigEndian2Bin() : string
- BigEndian2Float() : float|false
- ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic
- BigEndian2Int() : int|float|false
- BigEndian2String() : string
- Bin2Dec() : int|float
- Bin2String() : string
- CastAsInt() : int|float
- CopyFileParts() : bool
- CopyTagsToComments() : bool
- CreateDeepArray() : array<string|int, mixed>
- DateMac2Unix() : int|float
- Dec2Bin() : string
- DecimalBinary2Float() : float
- DecimalizeFraction() : float
- EmbeddedLookup() : string
- fileextension() : string
- FixedPoint16_16() : float
- FixedPoint2_30() : float
- FixedPoint8_8() : float
- flipped_array_merge_noclobber() : array<string|int, mixed>|false|null
- Float2BinaryDecimal() : string
- Float2String() : string|false
- GetDataImageSize() : array<string|int, mixed>|false
- getFileSizeSyscall() : float|bool
- hash_data() : string|false
- Returns checksum for a file from starting position to absolute end position.
- iconv_fallback() : string
- iconv_fallback_int_utf8() : string
- iconv_fallback_iso88591_utf16() : string
- ISO-8859-1 => UTF-16LE (BOM)
- iconv_fallback_iso88591_utf16be() : string
- ISO-8859-1 => UTF-16BE
- iconv_fallback_iso88591_utf16le() : string
- ISO-8859-1 => UTF-16LE
- iconv_fallback_iso88591_utf8() : string
- ISO-8859-1 => UTF-8
- iconv_fallback_utf16_iso88591() : string
- UTF-16 (BOM) => ISO-8859-1
- iconv_fallback_utf16_utf8() : string
- UTF-16 (BOM) => UTF-8
- iconv_fallback_utf16be_iso88591() : string
- UTF-16BE => ISO-8859-1
- iconv_fallback_utf16be_utf8() : string
- UTF-16BE => UTF-8
- iconv_fallback_utf16le_iso88591() : string
- UTF-16LE => ISO-8859-1
- iconv_fallback_utf16le_utf8() : string
- UTF-16LE => UTF-8
- iconv_fallback_utf8_iso88591() : string
- UTF-8 => ISO-8859-1
- iconv_fallback_utf8_utf16() : string
- UTF-8 => UTF-16LE (BOM)
- iconv_fallback_utf8_utf16be() : string
- UTF-8 => UTF-16BE
- iconv_fallback_utf8_utf16le() : string
- UTF-8 => UTF-16LE
- ImageExtFromMime() : string
- IncludeDependency() : bool
- intValueSupported() : bool
- ksort_recursive() : bool
- LittleEndian2Bin() : string
- LittleEndian2Float() : float|false
- LittleEndian2Int() : int|float|false
- LittleEndian2String() : string
- mb_basename() : string
- Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
- MultiByteCharString2HTML() : string
- NormalizeBinaryPoint() : array<string|int, mixed>
- PlaytimeString() : string
- PrintHexBytes() : string
- recursiveMultiByteCharString2HTML() : mixed
- RGADadjustmentLookup() : float
- RGADamplitude2dB() : float
- RGADgainString() : string
- RGADnameLookup() : string
- RGADoriginatorLookup() : string
- safe_inc() : bool
- SafeDiv() : float|int
- Perform a division, guarding against division by zero
- SimpleXMLelement2array() : mixed
- trimNullByte() : string
- truepath() : string|false
- trunc() : float|int
- Truncates a floating-point number at the decimal point.
- XML2array() : array<string|int, mixed>|false
Methods
array_max()
public
static array_max(array<string|int, mixed> $arraydata[, bool $returnkey = false ]) : int|false
Parameters
- $arraydata : array<string|int, mixed>
- $returnkey : bool = false
Return values
int|falsearray_merge_clobber()
public
static array_merge_clobber(mixed $array1, mixed $array2) : array<string|int, mixed>|false
Parameters
- $array1 : mixed
- $array2 : mixed
Return values
array<string|int, mixed>|falsearray_merge_noclobber()
public
static array_merge_noclobber(mixed $array1, mixed $array2) : array<string|int, mixed>|false
Parameters
- $array1 : mixed
- $array2 : mixed
Return values
array<string|int, mixed>|falsearray_min()
public
static array_min(array<string|int, mixed> $arraydata[, bool $returnkey = false ]) : int|false
Parameters
- $arraydata : array<string|int, mixed>
- $returnkey : bool = false
Return values
int|falseBigEndian2Bin()
public
static BigEndian2Bin(string $byteword) : string
Parameters
- $byteword : string
Return values
stringBigEndian2Float()
ANSI/IEEE Standard 754-1985, Standard for Binary Floating Point Arithmetic
public
static BigEndian2Float(string $byteword) : float|false
Parameters
- $byteword : string
Tags
Return values
float|falseBigEndian2Int()
public
static BigEndian2Int(string $byteword[, bool $synchsafe = false ][, bool $signed = false ]) : int|float|false
Parameters
- $byteword : string
- $synchsafe : bool = false
- $signed : bool = false
Tags
Return values
int|float|falseBigEndian2String()
public
static BigEndian2String(int $number[, int $minbytes = 1 ][, bool $synchsafe = false ][, bool $signed = false ]) : string
Parameters
- $number : int
- $minbytes : int = 1
- $synchsafe : bool = false
- $signed : bool = false
Tags
Return values
stringBin2Dec()
public
static Bin2Dec(string $binstring[, bool $signed = false ]) : int|float
Parameters
- $binstring : string
- $signed : bool = false
Return values
int|floatBin2String()
public
static Bin2String(string $binstring) : string
Parameters
- $binstring : string
Return values
stringCastAsInt()
public
static CastAsInt(int|float $floatnum) : int|float
Parameters
- $floatnum : int|float
Return values
int|floatCopyFileParts()
public
static CopyFileParts(string $filename_source, string $filename_dest, int $offset, int $length) : bool
Parameters
- $filename_source : string
- $filename_dest : string
- $offset : int
- $length : int
Tags
Return values
boolCopyTagsToComments()
public
static CopyTagsToComments(array<string|int, mixed> &$ThisFileInfo[, bool $option_tags_html = true ]) : bool
Parameters
- $ThisFileInfo : array<string|int, mixed>
- $option_tags_html : bool = true
-
default true (just as in the main getID3 class)
Return values
boolCreateDeepArray()
public
static CreateDeepArray(string $ArrayPath, string $Separator, mixed $Value) : array<string|int, mixed>
Parameters
- $ArrayPath : string
- $Separator : string
- $Value : mixed
Return values
array<string|int, mixed>DateMac2Unix()
public
static DateMac2Unix(int $macdate) : int|float
Parameters
- $macdate : int
Return values
int|floatDec2Bin()
public
static Dec2Bin(int $number) : string
Parameters
- $number : int
Return values
stringDecimalBinary2Float()
public
static DecimalBinary2Float(string $binarynumerator) : float
Parameters
- $binarynumerator : string
Return values
floatDecimalizeFraction()
public
static DecimalizeFraction(string $fraction) : float
Parameters
- $fraction : string
Return values
floatEmbeddedLookup()
public
static EmbeddedLookup(string $key, int $begin, int $end, string $file, string $name) : string
Parameters
- $key : string
- $begin : int
- $end : int
- $file : string
- $name : string
Return values
stringfileextension()
public
static fileextension(string $filename[, int $numextensions = 1 ]) : string
Parameters
- $filename : string
- $numextensions : int = 1
Return values
stringFixedPoint16_16()
public
static FixedPoint16_16(string $rawdata) : float
Parameters
- $rawdata : string
Return values
floatFixedPoint2_30()
public
static FixedPoint2_30(string $rawdata) : float
Parameters
- $rawdata : string
Return values
floatFixedPoint8_8()
public
static FixedPoint8_8(string $rawdata) : float
Parameters
- $rawdata : string
Return values
floatflipped_array_merge_noclobber()
public
static flipped_array_merge_noclobber(mixed $array1, mixed $array2) : array<string|int, mixed>|false|null
Parameters
- $array1 : mixed
- $array2 : mixed
Return values
array<string|int, mixed>|false|nullFloat2BinaryDecimal()
public
static Float2BinaryDecimal(float $floatvalue) : string
Parameters
- $floatvalue : float
Tags
Return values
stringFloat2String()
public
static Float2String(float $floatvalue, int $bits) : string|false
Parameters
- $floatvalue : float
- $bits : int
Tags
Return values
string|falseGetDataImageSize()
public
static GetDataImageSize(string $imgData[, array<string|int, mixed> &$imageinfo = array() ]) : array<string|int, mixed>|false
Parameters
- $imgData : string
- $imageinfo : array<string|int, mixed> = array()
Return values
array<string|int, mixed>|falsegetFileSizeSyscall()
public
static getFileSizeSyscall(string $path) : float|bool
Parameters
- $path : string
Return values
float|boolhash_data()
Returns checksum for a file from starting position to absolute end position.
public
static hash_data(string $file, int $offset, int $end, string $algorithm) : string|false
Parameters
- $file : string
- $offset : int
- $end : int
- $algorithm : string
Tags
Return values
string|falseiconv_fallback()
public
static iconv_fallback(string $in_charset, string $out_charset, string $string) : string
Parameters
- $in_charset : string
- $out_charset : string
- $string : string
Tags
Return values
stringiconv_fallback_int_utf8()
public
static iconv_fallback_int_utf8(int $charval) : string
Parameters
- $charval : int
Return values
stringiconv_fallback_iso88591_utf16()
ISO-8859-1 => UTF-16LE (BOM)
public
static iconv_fallback_iso88591_utf16(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_iso88591_utf16be()
ISO-8859-1 => UTF-16BE
public
static iconv_fallback_iso88591_utf16be(string $string[, bool $bom = false ]) : string
Parameters
- $string : string
- $bom : bool = false
Return values
stringiconv_fallback_iso88591_utf16le()
ISO-8859-1 => UTF-16LE
public
static iconv_fallback_iso88591_utf16le(string $string[, bool $bom = false ]) : string
Parameters
- $string : string
- $bom : bool = false
Return values
stringiconv_fallback_iso88591_utf8()
ISO-8859-1 => UTF-8
public
static iconv_fallback_iso88591_utf8(string $string[, bool $bom = false ]) : string
Parameters
- $string : string
- $bom : bool = false
Return values
stringiconv_fallback_utf16_iso88591()
UTF-16 (BOM) => ISO-8859-1
public
static iconv_fallback_utf16_iso88591(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf16_utf8()
UTF-16 (BOM) => UTF-8
public
static iconv_fallback_utf16_utf8(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf16be_iso88591()
UTF-16BE => ISO-8859-1
public
static iconv_fallback_utf16be_iso88591(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf16be_utf8()
UTF-16BE => UTF-8
public
static iconv_fallback_utf16be_utf8(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf16le_iso88591()
UTF-16LE => ISO-8859-1
public
static iconv_fallback_utf16le_iso88591(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf16le_utf8()
UTF-16LE => UTF-8
public
static iconv_fallback_utf16le_utf8(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf8_iso88591()
UTF-8 => ISO-8859-1
public
static iconv_fallback_utf8_iso88591(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf8_utf16()
UTF-8 => UTF-16LE (BOM)
public
static iconv_fallback_utf8_utf16(string $string) : string
Parameters
- $string : string
Return values
stringiconv_fallback_utf8_utf16be()
UTF-8 => UTF-16BE
public
static iconv_fallback_utf8_utf16be(string $string[, bool $bom = false ]) : string
Parameters
- $string : string
- $bom : bool = false
Return values
stringiconv_fallback_utf8_utf16le()
UTF-8 => UTF-16LE
public
static iconv_fallback_utf8_utf16le(string $string[, bool $bom = false ]) : string
Parameters
- $string : string
- $bom : bool = false
Return values
stringImageExtFromMime()
public
static ImageExtFromMime(string $mime_type) : string
Parameters
- $mime_type : string
Return values
stringIncludeDependency()
public
static IncludeDependency(string $filename, string $sourcefile[, bool $DieOnFailure = false ]) : bool
Parameters
- $filename : string
- $sourcefile : string
- $DieOnFailure : bool = false
Tags
Return values
boolintValueSupported()
public
static intValueSupported(int $num) : bool
Parameters
- $num : int
Return values
boolksort_recursive()
public
static ksort_recursive(array<string|int, mixed> &$theArray) : bool
Parameters
- $theArray : array<string|int, mixed>
Return values
boolLittleEndian2Bin()
public
static LittleEndian2Bin(string $byteword) : string
Parameters
- $byteword : string
Return values
stringLittleEndian2Float()
public
static LittleEndian2Float(string $byteword) : float|false
Parameters
- $byteword : string
Return values
float|falseLittleEndian2Int()
public
static LittleEndian2Int(string $byteword[, bool $signed = false ]) : int|float|false
Parameters
- $byteword : string
- $signed : bool = false
Return values
int|float|falseLittleEndian2String()
public
static LittleEndian2String(int $number[, int $minbytes = 1 ][, bool $synchsafe = false ]) : string
Parameters
- $number : int
- $minbytes : int = 1
- $synchsafe : bool = false
Return values
stringmb_basename()
Workaround for Bug #37268 (https://bugs.php.net/bug.php?id=37268)
public
static mb_basename(string $path[, string $suffix = '' ]) : string
Parameters
- $path : string
-
A path.
- $suffix : string = ''
-
If the name component ends in suffix this will also be cut off.
Return values
stringMultiByteCharString2HTML()
public
static MultiByteCharString2HTML(string|int|float $string[, string $charset = 'ISO-8859-1' ]) : string
Parameters
- $string : string|int|float
- $charset : string = 'ISO-8859-1'
Return values
stringNormalizeBinaryPoint()
public
static NormalizeBinaryPoint(string $binarypointnumber[, int $maxbits = 52 ]) : array<string|int, mixed>
Parameters
- $binarypointnumber : string
- $maxbits : int = 52
Tags
Return values
array<string|int, mixed>PlaytimeString()
public
static PlaytimeString(int $seconds) : string
Parameters
- $seconds : int
Return values
stringPrintHexBytes()
public
static PrintHexBytes(string $string[, bool $hex = true ][, bool $spaces = true ][, string|bool $htmlencoding = 'UTF-8' ]) : string
Parameters
- $string : string
- $hex : bool = true
- $spaces : bool = true
- $htmlencoding : string|bool = 'UTF-8'
Return values
stringrecursiveMultiByteCharString2HTML()
public
static recursiveMultiByteCharString2HTML(mixed $data[, string $charset = 'ISO-8859-1' ]) : mixed
Parameters
- $data : mixed
- $charset : string = 'ISO-8859-1'
RGADadjustmentLookup()
public
static RGADadjustmentLookup(int $rawadjustment, int $signbit) : float
Parameters
- $rawadjustment : int
- $signbit : int
Return values
floatRGADamplitude2dB()
public
static RGADamplitude2dB(float $amplitude) : float
Parameters
- $amplitude : float
Return values
floatRGADgainString()
public
static RGADgainString(int $namecode, int $originatorcode, int $replaygain) : string
Parameters
- $namecode : int
- $originatorcode : int
- $replaygain : int
Return values
stringRGADnameLookup()
public
static RGADnameLookup(int $namecode) : string
Parameters
- $namecode : int
Return values
stringRGADoriginatorLookup()
public
static RGADoriginatorLookup(int $originatorcode) : string
Parameters
- $originatorcode : int
Return values
stringsafe_inc()
public
static safe_inc(int|null &$variable[, int $increment = 1 ]) : bool
Parameters
- $variable : int|null
- $increment : int = 1
Return values
boolSafeDiv()
Perform a division, guarding against division by zero
public
static SafeDiv(float|int $numerator, float|int $denominator[, float|int $fallback = 0 ]) : float|int
Parameters
- $numerator : float|int
- $denominator : float|int
- $fallback : float|int = 0
Return values
float|intSimpleXMLelement2array()
public
static SimpleXMLelement2array(SimpleXMLElement|array<string|int, mixed>|mixed $XMLobject) : mixed
Parameters
- $XMLobject : SimpleXMLElement|array<string|int, mixed>|mixed
trimNullByte()
public
static trimNullByte(string $string) : string
Parameters
- $string : string
Return values
stringtruepath()
public
static truepath(string $filename) : string|false
Parameters
- $filename : string
Return values
string|falsetrunc()
Truncates a floating-point number at the decimal point.
public
static trunc(float $floatnumber) : float|int
Parameters
- $floatnumber : float
Return values
float|int —returns int (if possible, otherwise float)
XML2array()
public
static XML2array(string $XMLstring) : array<string|int, mixed>|false
Parameters
- $XMLstring : string