Title is pretty much self explanatory but just to clarify.
I want to fetch the numeric value out of string witch is not necessarily contains only numeric values.
Now I can do that with preg_match
but I was wondering if there is an internal php command that can do it in a cleaner way.
so... just to clarify with example:
$myString = 'qazwsxedc15rfvtgbyhnujmikolp';
$myString = fetchNumber($myString); //Expecting to get $myString=15;