PHP Tutorials - Herong's Tutorial Examples - Version 4.20, by Dr. Herong Yang
"mbstring" - Multi-Byte String Extension
This section describes the mbstring (multi-byte string) extension library designed to help you manipulate non-ASCII character strings encoded in various encoding schemas like Unicode UTF-8.
PHP offers a nice extension called "mbstring (multi-byte string)" to help you manage non-ASCII strings. Here are the features of "mbstring":
"mbstring" extension needs to installed and configured by updating the php.ini file. To get started with "mbstring" features, I modified my php.ini as:
extension=php_mbstring.dll ... mbstring.language = Neutral mbstring.internal_encoding = UTF-8 mbstring.http_input = pass mbstring.http_output = pass mbstring.encoding_translation = Off mbstring.detect_order = auto
Note that:
Last update: 2019.
Table of Contents
Introduction and Installation of PHP 7.3
PHP Data Types and Data Literals
Variables, References, and Constants
Expressions, Operations and Type Conversions
Conditional Statements - "if" and "switch"
Loop Statements - "while", "for", and "do ... while"
Function Declaration, Arguments, and Return Values
Introduction of Class and Object
Integrating PHP with Apache Web Server
Retrieving Information from HTTP Requests
Creating and Managing Sessions in PHP Scripts
Sending and Receiving Cookies in PHP Scripts
Controlling HTTP Response Header Lines in PHP Scripts
MySQL Server Connection and Access Functions
Functions to Manage Directories, Files and Images
SOAP Extension Function and Calling Web Services
SOAP Server Functions and Examples
Localization Overview of Web Applications
Using Non-ASCII Characters in HTML Documents
Using Non-ASCII Characters as PHP Script String Literals
Receiving Non-ASCII Characters from Input Forms
►"mbstring" Extension and Non-ASCII Encoding Management
►"mbstring" - Multi-Byte String Extension
mb_convert_encoding() and Other mbstring Functions
Examples of Using "mbstring" Functions
Managing HTTP Input and Output Encoding
Managing Non-ASCII Character Strings with MySQL Servers