<?php $string = "10(400)"; preg_match_all('#\d+#', $string, $matches); print_r($matches);
Standard input is empty
Array ( [0] => Array ( [0] => 10 [1] => 400 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!