Hi All,
Its been a while since ive coded so im a bit rusty.
I have a string like this
$string = '80 (0/-0.01) mm';
I want the 1st number before the (.
I tried using preg_replace but the brackets and / are affecting the output.
The number can change from 1 to 80000+.
I know i can find the position of the 1st bracket and work back but i thought there would be a better way to do it as this is repeated in a very large loop.
Thanks for any help.
Al