$thelines = explode("\n",$textarea);
foreach ($thelines as $key => $line) {
$values = explode(" ",$line);
$data = $values[0];
$nums = $values[1];
}
Or you could build an array that sets the key as the numbers.
$thelines = explode("\n",$textarea);
$allvalues = array();
foreach ($thelines as $key => $line) {
$values = explode(" ",$line);
$allvalues[$values[0]] = $values[1];
}
Then you can reference each one from the $allvalues array.
echo $allvalues['find']; // outputs 123