<?php$foo = '0 0 0 0 0 0 1299097206.634845 46 0 112066 1008596';preg_match('/(\d+)\s+\d+$/', $foo, $match);echo $match[1];