这有用吗?
$val = intval($total_results->getText());
$results_numeric = (int) $total_results;
或者这个:
$results_numeric = $total_results->count();