mb_check_encoding(3) php man page | unix.com

Man Page: mb_check_encoding

Operating Environment: php

Section: 3

MB_CHECK_ENCODING(3)							 1						      MB_CHECK_ENCODING(3)

mb_check_encoding - Check if the string is valid for the specified encoding

SYNOPSIS
bool mb_check_encoding NULL ([string $var], [string $encoding = mb_internal_encoding()])
DESCRIPTION
Checks if the specified byte stream is valid for the specified encoding. It is useful to prevent so-called "Invalid Encoding Attack".
PARAMETERS
o $var - The byte stream to check. If it is omitted, this function checks all the input from the beginning of the request. o $encoding - The expected encoding.
RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group MB_CHECK_ENCODING(3)
Related Man Pages
mb_strripos(3) - php
mb_encoding_aliases(3) - php
mb_strcut(3) - php
mb_stripos(3) - php
mb_stristr(3) - php
Similar Topics in the Unix Linux Community
Rules for Homework & Coursework Questions Forum
Forum Video Tutorial: How to Use Code Tags
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Don Cragun
Denial Of Service Attack Update