May 17, 2007 0
limit parameter examples
$str = 'one|two|three|four'; // positive limit
print_r(explode('|', $str, 2)); // negative limit (since PHP 5.1)
print_r(explode('|', $str, -1));
The above example output shold be:
Array
(
[0] => one
[1] => two|three|four
)
Array
(
[0] => one
[1] => two
[2] => three
)
Recent Comments