How can I grab an integer from the following strings?
co_aut1_last_name,co_aut1_first_name,co_aut1_institution,co_aut1_country
co_aut10_last_name,co_aut10_first_name,co_aut10_institution,co_aut10_country
co_aut100_last_name,co_aut100_first_name,co_aut100_institution,co_aut100_country
so I that only retrieve 1, 10, 100
If I do this:
$string = substr($p,6,1);
I can grab 1 but if the number is 10 or 100 I will only get 1 still