<?php // your code goes here $string = "There are three ids: id=10 and id=12 and id=100";preg_match_all("/id=(\d+)/", $string, $matches);print_r($matches);
Standard input is empty
Array ( [0] => Array ( [0] => id=10 [1] => id=12 [2] => id=100 ) [1] => Array ( [0] => 10 [1] => 12 [2] => 100 ) )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!