php find value in a string
Posted on 2014-04-14
I have the following line of string:
** This. ion:1908er --- ion3, 237390, --- ion3, 2373104543, ---.......
In this line there are many "ion3" i need to find the value after the first ion3 that in this case is 237390. This number can have any number of digits, like the second ion3, but i only need the number of the first one that appears in the string. Always are a "," after ion3 then a space and after the number another ","