$x = "Hello World!"; $y = explode(" ", $x); //Use the print_r() function to display //the result: print_r($y); /* Result: Array ( [0] => Hello [1] => World! ) */