I would like to extract a number from a string. The string looks something like this:
"visaObs(31124228);"
Here is my shot at it. It doesn't seem to get any matches:
preg_match('/visaObs((\d+));/s', $attribute, $match);
echo $match[0]; //undefined offset
Any ideas?