英[?k?spl??d] US[?k?splo?d]

vi. ???, ???? ????

vt. ??; ??

3?? ??: ???? ?? ??: ???? ?? ??: ???? ?? ??: ????

PHP ??() ?? ???

??: ???? ??? ??

??: explode(separator, string,limit)

????:

PHP ??() ?? ?

<?php
$str = "Hello world. I'm study in php.cn!";
print_r (explode(".",$str));
?>

???? ???

??? ????? ??? "???? ??" ??? ?????

??:

Array ( [0] => Hello world [1] => I'm study in php [2] => cn! )


<?php
$arr = "Learning PHP is a good choice";
print_r(explode(" ", $arr));
?>

???? ???

??' ??? ??? ? ??

??:

Array ( [0] => Learning [1] => PHP [2] => is [3] => a [4] => good [5] => choice )
ParameterDescription
?? ?? ?? . ???? ??? ??? ?????.
??? ?????. ??? ??????.
???? ?????. ??? ?? ??? ?? ?????. ??? ?: 0?? ? - ?? ?? ??? ???? ??? ????, 0?? ??? ??? ?? ??? ??? ?? ??? ?????? ??? ????, 0 - ??? ??? ???? ??? ?????. ???? ??? ?????. "separator" ????? ? ???? ? ????. ? ??? ???? ?????.

    <input id="socmk"></input>
        <rt id="socmk"><small id="socmk"></small></rt>
        <rt id="socmk"><tr id="socmk"></tr></rt>