(PHP 4 >= 4.0.6, PHP 5, PHP 7)
mb_strcut — 锟斤拷取锟街凤拷锟斤拷一锟斤拷锟斤拷
$str
, int $start
[, int $length
= NULL
[, string $encoding
= mb_internal_encoding()
]] ) : stringmb_strcut() 锟斤拷 mb_substr() 锟斤拷锟狡o拷锟斤拷锟角达拷锟街凤拷锟斤拷锟斤拷锟斤拷取锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷锟角帮拷锟街斤拷锟斤拷锟斤拷执锟叫o拷锟斤拷锟斤拷锟斤拷锟街凤拷锟斤拷锟斤拷锟斤拷 锟斤拷锟斤拷囟锟轿伙拷锟轿伙拷诙锟斤拷纸锟斤拷址锟斤拷锟斤拷锟斤拷纸诘锟斤拷屑洌拷锟斤拷诟锟斤拷址锟斤拷牡锟揭伙拷锟斤拷纸诳锟绞贾达拷小锟� 锟斤拷也锟角猴拷 substr() 锟斤拷锟斤拷锟侥诧拷同之锟斤拷锟斤拷锟斤拷锟竭简单地斤拷锟街凤拷锟斤拷锟斤拷锟街斤拷之锟斤拷囟希锟斤拷饨拷锟斤拷锟揭伙拷锟斤拷锟斤拷蔚锟斤拷纸锟斤拷锟斤拷小锟�
str
要锟截断碉拷 string锟斤拷
start
锟斤拷锟� start
锟斤拷锟角革拷锟斤拷锟斤拷锟斤拷锟截碉拷锟街凤拷锟斤拷锟斤拷锟� str
锟侥碉拷 start
锟街斤拷位锟矫匡拷始锟斤拷锟斤拷 0 锟斤拷始锟斤拷锟斤拷锟斤拷锟劫革拷锟斤拷锟接o拷锟街凤拷锟斤拷 'abcdef'锟斤拷锟街斤拷位锟斤拷 0 锟斤拷锟街凤拷锟斤拷 'a'锟斤拷锟街斤拷位锟斤拷 2 锟斤拷锟街凤拷锟斤拷
'c'锟斤拷锟皆达拷锟斤拷锟狡★拷
锟斤拷锟� start
锟角革拷锟斤拷锟斤拷锟斤拷锟截碉拷锟街凤拷锟斤拷锟角达拷 str
末尾锟斤拷锟斤拷 start
锟斤拷锟街节匡拷始锟侥★拷
length
锟街斤拷锟斤拷锟饺★拷If omitted or NULL is passed, extract all bytes to the end of the string.
encoding
encoding
锟斤拷锟斤拷为锟街凤拷锟斤拷锟诫。锟斤拷锟绞★拷裕锟斤拷锟绞癸拷锟斤拷诓锟斤拷址锟斤拷锟斤拷搿�
mb_strcut() 锟斤拷锟斤拷 start
锟斤拷 length
锟斤拷锟斤拷锟斤拷锟斤拷 str
锟斤拷一锟斤拷锟街★拷
锟芥本 | 说锟斤拷 |
---|---|
5.4.8 |
Passing NULL as length
extracts all bytes to the end of the string. Prior to this version
NULL was treated the same as 0.
|