How to use explode function in PHP?

Explode function in PHP-

<?php
 // original string
 $string = 'Hello, How can we help you?';
 // Without optional parameter NoOfElements
 print_r(explode(" ",$string));
print_r(explode(" ",$string,3));
print_r(explode(" ",$string,-1));
?>
Array
 (
     [0] => Hello,
     [1] => How
     [2] => can
     [3] => we
     [4] => help
     [5] => you?
 )
 Array
 (
     [0] => Hello,
     [1] => How
     [2] => can we help you?
 )
 Array
 (
     [0] => Hello,
     [1] => How
     [2] => can
     [3] => we
     [4] => help
 )