|
explodeSplit a string by string Description
array explode
( string
$delimiter
, string $string
[, int $limit
] )
Returns an array of strings, each of which is a substring of
Parameters
Although implode can, for historical reasons,
accept its parameters in either order,
explode cannot. You must ensure that the
Return Values
Returns an array of strings
created by splitting the
If Changelog
Examples
Example #1 explode examples
<?php
Example #2 explode return examples
<?php The above example will output: array(1) ( [0] => string(5) "hello" ) array(2) ( [0] => string(5) "hello" [1] => string(5) "there" )
Example #3
<?php The above example will output: Array ( [0] => one [1] => two|three|four ) Array ( [0] => one [1] => two [2] => three ) Notes
See Also
|