Documentation

PHPUnit_Util_String
in package

String helpers.

Tags
since

Class available since Release 3.6.0

Table of Contents

convertToUtf8()  : string
Converts a string to UTF-8 encoding.
isUtf8()  : bool
Checks a string for UTF-8 encoding.

Methods

convertToUtf8()

Converts a string to UTF-8 encoding.

public static convertToUtf8(string $string) : string
Parameters
$string : string
Return values
string

isUtf8()

Checks a string for UTF-8 encoding.

protected static isUtf8(string $string) : bool
Parameters
$string : string
Return values
bool

Search results