parsing - How to return numbers in a string file (txt)? -


i want parse txt file information. want is, find numbers in string mean want sub return first number (as many digits number ) after second 1 , third 1 etc. possible?

$string = preg_replace('/\d/', ' ', $string);

$numberarray = explode(' ',$string);


Comments

Popular posts from this blog

How do you change vbulletin's home page to the forums instead of the default (CMS or Activity Stream)? -

c++ - Troubles when compiling phash program -