Split string into 2 parts PHP

I have a string with a name. How can I divide it into 2 parts. 1 part before the gap, and 2 after. For example “Ivan Ivanov” and make “Ivan” and “Ivanov” separately


Answer 1, authority 100%

$str = ' ';
$result = explode(' ',$str);
// $result 
echo ' ' . $result[0];
echo '' . $result[1];