<?php$string = '12ala1';$string = preg_replace('@[^0-9]@', '', $string);echo $string;
Standard input is empty
121
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!