<?php $text = '9 - 1'; preg_match_all('/\d+/', $text, $out); var_dump($out[0]); $text = '5-3'; preg_match_all('/\d+/', $text, $out); var_dump($out[0]);
You have javascript disabled. You will not be able to edit any code.