PHP Compiler
<!DOCTYPE html> <html> <body> <?php $str = "Learn PHP from Wikimass."; print_r (explode(" ", $str, -2)); echo "<br>"; print_r (explode(" ", $str, 0)); echo "<br>"; print_r (explode(" ", $str, 2)); ?> </body> </html>
OUTPUT
Array ( [0] => Learn [1] => PHP )
Array ( [0] => Learn PHP from Wikimass. )
Array ( [0] => Learn [1] => PHP from Wikimass. )
×

Save as Private