(PHP 4 >= 4.0.6, PHP 5, PHP 7)
mb_substr — 锟斤拷取锟斤拷锟斤拷锟街凤拷锟斤拷
$str
, int $start
[, int $length
= NULL
[, string $encoding
= mb_internal_encoding()
]] ) : string
锟斤拷锟斤拷锟街凤拷锟斤拷执锟斤拷一锟斤拷锟斤拷锟街节帮拷全锟斤拷 substr() 锟斤拷锟斤拷锟斤拷
位锟斤拷锟角达拷 str
锟侥匡拷始位锟矫斤拷锟叫硷拷锟斤拷锟斤拷
锟斤拷一锟斤拷锟街凤拷锟斤拷位锟斤拷锟斤拷 0锟斤拷锟节讹拷锟斤拷锟街凤拷锟斤拷位锟斤拷锟斤拷 1锟斤拷锟皆达拷锟斤拷锟狡★拷
str
锟接革拷 string 锟斤拷锟斤拷取锟斤拷锟街凤拷锟斤拷锟斤拷
start
锟斤拷锟� start
锟斤拷锟角革拷锟斤拷锟斤拷锟斤拷锟截碉拷锟街凤拷锟斤拷锟斤拷锟� str
锟斤拷 start
锟斤拷位锟矫匡拷始锟斤拷锟斤拷 0 锟斤拷始锟斤拷锟斤拷锟斤拷锟劫革拷锟斤拷锟接o拷锟街凤拷锟斤拷 'abcdef'锟斤拷位锟斤拷 0 锟斤拷锟街凤拷锟斤拷 'a'锟斤拷位锟斤拷 2 锟斤拷锟街凤拷锟斤拷
'c'锟斤拷锟皆达拷锟斤拷锟狡★拷
锟斤拷锟� start
锟角革拷锟斤拷锟斤拷锟斤拷锟截碉拷锟街凤拷锟斤拷锟角达拷 str
末尾锟斤拷锟斤拷 start
锟斤拷锟街凤拷锟斤拷始锟侥★拷
length
str
锟斤拷要使锟矫碉拷锟斤拷锟斤拷址锟斤拷锟斤拷锟斤拷锟斤拷省锟斤拷锟剿此诧拷锟斤拷锟斤拷锟竭达拷锟斤拷锟斤拷 NULL锟斤拷锟斤拷锟斤拷锟饺★拷锟斤拷址锟斤拷锟斤拷锟轿诧拷锟斤拷锟�
encoding
encoding
锟斤拷锟斤拷为锟街凤拷锟斤拷锟诫。锟斤拷锟绞★拷裕锟斤拷锟绞癸拷锟斤拷诓锟斤拷址锟斤拷锟斤拷搿�
mb_substr() 锟斤拷锟斤拷锟斤拷锟斤拷 start
锟斤拷 length
锟斤拷锟斤拷锟斤拷锟斤拷 str
锟斤拷指锟斤拷锟侥诧拷锟街★拷
锟芥本 | 说锟斤拷 |
---|---|
5.4.8 |
length 锟斤拷锟斤拷 NULL锟斤拷锟斤拷锟� start 锟斤拷取锟斤拷锟街凤拷锟斤拷锟侥斤拷尾锟斤拷锟斤拷
锟斤拷之前锟侥版本锟斤,
NULL 锟结被锟斤拷锟斤拷 0 锟斤拷锟斤拷锟斤拷
|