Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

mb_check_encoding()

3 tags 1 category

mb_check_encoding() — Check if strings are valid for the specified encoding.

mb_check_encoding() — Checks if the specified byte stream is valid for the specified encoding. If value is of type array, all keys and values are validated recursively. It is useful to prevent so-called “Invalid Encoding Attack”.

Inputs: value: The byte stream or array to check. If it is omitted, this function checks all the input from the beginning of the request. encoding: The expected encoding.

Returns: Returns true on success or false on failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…