WIKINDX API 6.9.0

UTF8

Table of Contents

Functions

html_numeric_entity_decode()  : string
Convert numeric HTML entities to their corresponding characters
mb_ucfirst()  : string
A unicode aware replacement for ucfirst()
mb_explode()  : string
Simulate explode() for multibytes strings (as documented for PHP 7.0)
mb_strrev()  : string
Simulate strrev() for multibytes strings
mb_substr_replace()  : string
Simulate substr_replace() for multibytes strings
mb_trim()  : string
Multi-byte safely strip white-spaces (or other characters) from the beginning and end of a string.
mb_ltrim()  : string
Multi-byte safely strip white-spaces (or other characters) from the beginning of a string.
mb_rtrim()  : string
Multi-byte safely strip white-spaces (or other characters) from the end of a string.

Functions

html_numeric_entity_decode()

Convert numeric HTML entities to their corresponding characters

html_numeric_entity_decode(string $str) : string

Act like html_entity_decode() builtin but converts also control characters.

Parameters
$str : string
Tags
see
https://www.december.com/html/spec/codes.html
Return values
string

mb_ucfirst()

A unicode aware replacement for ucfirst()

mb_ucfirst(string $str[, string $encoding = null ]) : string

TODO(LkpPo): remove this polyfill when PHP 8.4 will be the minimum PHP version

Parameters
$str : string
$encoding : string = null
Tags
author

Andrea Rossato arossato@istitutocolli.org

see
ucfirst()
see
https://wiki.php.net/rfc/mb_ucfirst
Return values
string

mb_explode()

Simulate explode() for multibytes strings (as documented for PHP 7.0)

mb_explode(string $delimiter, string $string[, int $limit = PHP_INT_MAX ]) : string
Parameters
$delimiter : string
$string : string
$limit : int = PHP_INT_MAX

Default is PHP_INT_MAX.

Return values
string

mb_strrev()

Simulate strrev() for multibytes strings

mb_strrev(string $str) : string
Parameters
$str : string
Return values
string

mb_substr_replace()

Simulate substr_replace() for multibytes strings

mb_substr_replace(string $string, string $replacement, int $start[, int $length = NULL ][, string $encoding = NULL ]) : string
Parameters
$string : string
$replacement : string
$start : int
$length : int = NULL

Default is NULL.

$encoding : string = NULL

Default is NULL.

Return values
string

mb_trim()

Multi-byte safely strip white-spaces (or other characters) from the beginning and end of a string.

mb_trim(string $string[, string $characters = "              

   …᠎" ][, string|null $encoding = null ]) : string
Parameters
$string : string

The string that will be trimmed.

$characters : string = "              

   …᠎"

Optionally, the stripped characters can also be specified using the $characters parameter. Simply list all characters that you want to be stripped.

$encoding : string|null = null

The encoding parameter is the character encoding.

Tags
see
https://github.com/PHP-Polyfills/mb_trim/blob/main/src/mb_trim.php

TODO(LkpPo): remove this polyfill when PHP 8.4 will be the minimum PHP version

Return values
string

The trimmed string.

mb_ltrim()

Multi-byte safely strip white-spaces (or other characters) from the beginning of a string.

mb_ltrim(string $string[, string $characters = "              

   …᠎" ][, string|null $encoding = null ]) : string
Parameters
$string : string

The string that will be trimmed.

$characters : string = "              

   …᠎"

Optionally, the stripped characters can also be specified using the $characters parameter. Simply list all characters that you want to be stripped.

$encoding : string|null = null

The encoding parameter is the character encoding.

Tags
see
https://github.com/PHP-Polyfills/mb_trim/blob/main/src/mb_trim.php

TODO(LkpPo): remove this polyfill when PHP 8.4 will be the minimum PHP version

Return values
string

The trimmed string.

mb_rtrim()

Multi-byte safely strip white-spaces (or other characters) from the end of a string.

mb_rtrim(string $string[, string $characters = "              

   …᠎" ][, string|null $encoding = null ]) : string
Parameters
$string : string

The string that will be trimmed.

$characters : string = "              

   …᠎"

Optionally, the stripped characters can also be specified using the $characters parameter. Simply list all characters that you want to be stripped.

$encoding : string|null = null

The encoding parameter is the character encoding.

Tags
see
https://github.com/PHP-Polyfills/mb_trim/blob/main/src/mb_trim.php

TODO(LkpPo): remove this polyfill when PHP 8.4 will be the minimum PHP version

Return values
string

The trimmed string.


        
On this page

Search results