How to split a line?

Hello!
There is a line like this:

"zz" "zz" 0 0 263.57727 1309080332

How do I break it down and write it to an array to make it:

$massiv[0] = zz
$massiv[1] = zz
$massiv[2] = 0
$massiv[3] = 0
$massiv[4] = 263.57727
$massiv[5] = 1309080332

Found the function : preg_match_all, but still didn’t figure out how to use it.
Can you explain it in a more accessible way, I’ve been learning php not long ago – that’s why it’s hard to understand =)


Answer 1, authority 100%

$str = '" " " " 0 0 263.57727 1309080332';
preg_match_all('/"([^"]*)"|([\d\.]+)/', $str, $ar);
echo '<pre>';print_r($ar);echo '</pre>';

We look, we decide what to do next. 😉


Answer 2

Something like this 🙂

$str = "\"zz\" \"zz\" 0 0 263.57727 1309080332";
$massiv = explode(" ", $pizza);
print_r($massiv);