public encoding ( string $encoding = null ) : mixed | ||
$encoding | string | If setting the encoding, this is the name of the encoding to set, i.e. `'utf8'` or `'UTF-8'` (both formats are valid). |
return | mixed | If setting the encoding; returns `true` on success, or `false` on failure. When getting, returns the encoding as a string. |