Bencodex

Codec

Interfaces, Classes, Traits and Enums

Decoder
DecodingError
The exception thrown when a Bencodex data is invalid so that it cannot be decoded into a PHP value.
Encoder
Encodes PHP values into corresponding Bencodex data.
TextEncodingError
The exception thrown when the configured text encoding is invalid or unsupported by iconv.
TextEncodingError
The exception thrown when the configured text encoding is invalid or unsupported by iconv.

Table of Contents

validateTextEncoding()  : bool
Validates if the given text encoding is valid and supported by iconv.
array_is_list()  : mixed

Functions

validateTextEncoding()

Validates if the given text encoding is valid and supported by iconv.

validateTextEncoding(string $textEncoding) : bool
Parameters
$textEncoding : string

A text encoding name to check.

Return values
bool

True if the given text encoding is valid.

array_is_list()

array_is_list(array<string|int, mixed> $array) : mixed
Parameters
$array : array<string|int, mixed>
Return values
mixed

Search results