final class Charsets
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

The character set names an underscore introducer may name.

_utf8mb4'text' is read as an introducer only when the word after the underscore is a character set MySQL knows; any other such word is an ordinary identifier.

Constants§

public const NAMES = ['armscii8', 'ascii', 'big5', 'binary', 'cp1250', 'cp1251', 'cp1256', 'cp1257',…

Character set names MySQL 5.6 through 9.x compile in.

Methods§

public static function has(string $name): bool

Reports whether a word names a character set.

Parameters

$namestringWord without the leading underscore

Returns

bool True for a known character set, in any case
Test cases 1
Called from 1
Calls 3

Test cases 3§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 1
Other tests reaching this symbol 2

Relations§

Static calls 1