回覆列表
-
1 # 使用者6602652349876
-
2 # 使用者2458114238191884
網頁連結
explode
(PHP 4, PHP 5, PHP 7)
explode — Split a string by string
Description
array explode ( string $delimiter , string $string [, int $limit = PHP_INT_MAX ] )
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.
$string = "asdf sdaf asd fsad f asd f as df";
$array = explode(" ",$string);
explode
(PHP 4, PHP 5, PHP 7)
explode — Split a string by string
Description
array explode ( string $delimiter , string $string [, int $limit = PHP_INT_MAX ] )
Returns an array of strings, each of which is a substring of string formed by splitting it on boundaries formed by the string delimiter.
$string = "asdf sdaf asd fsad f asd f as df";
$array = explode(" ",$string);