array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'tr', ), 'this' => array ( 0 => 'function.mb-trim.php', 1 => 'mb_trim', 2 => 'Strip whitespace (or other characters) from the beginning and end of a string', ), 'up' => array ( 0 => 'ref.mbstring.php', 1 => 'Çok baytlı Dizge İşlevleri', ), 'prev' => array ( 0 => 'function.mb-substr-count.php', 1 => 'mb_substr_count', ), 'next' => array ( 0 => 'function.mb-ucfirst.php', 1 => 'mb_ucfirst', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mbstring/functions/mb-trim.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

mb_trim

(PHP 8 >= 8.4.0)

mb_trimStrip whitespace (or other characters) from the beginning and end of a string

Açıklama

mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string

Performs a multi-byte safe trim() operation, and returns a string with whitespace stripped from the beginning and end of string. Without the second parameter, mb_trim() will strip these characters:

Bağımsız Değişkenler

string
The string that will be trimmed.
characters
Optionally, the stripped characters can also be specified using the characters parameter. Simply list all characters that need to be stripped.
encoding

kodlama bağımsız değişkeninde karakter kodlaması belirtilir. Belirtilmediği takdirde veya null ise dahili karakter kodlaması kullanılır.

Dönen Değerler

The trimmed string.

Ayrıca Bakınız