PHP3 Manual
PrevNext

explode

explode -- split a string by string

Description

array explode(string separator, string string);

Returns an array of strings containing the elements separated by separator.

Example 1. explode() example

$pizza = "piece1 piece2 piece3 piece4 piece5 piece6";
$pieces = explode(" ", $pizza);

See also split() and implode().


PrevHomeNext
echoUpflush