英 [?t??k?n]? ?美 [?to?k?n]??
n.象征;記號;代幣
adj.象征性的;作為對某事的保證的;作為標(biāo)志的
vt.預(yù)兆:預(yù)示或象征,預(yù)兆
php strtok()函數(shù) 語法
作用:逐一分割字符串
語法:strtok(string,split)
參數(shù):
參數(shù) | 描述 |
string | 必需。規(guī)定要分割的字符串。 |
split | 必需。規(guī)定一個或多個分割字符。 |
說明:strtok() 函數(shù)把字符串分割為更小的字符串(標(biāo)記)。
php strtok()函數(shù) 示例
<?php $string = "Hello world. I'm study in php.cn!"; $token = strtok($string, "."); while ($token !== false) { echo "$token<br>"; $token = strtok("."); } ?>
運(yùn)行實例 ?
點擊 "運(yùn)行實例" 按鈕查看在線實例
輸出:
Hello world I'm study in php cn!