J
JamesW
Sorry if this occurs twice, my nicely typed one just vanished. Anyway in brief:
I want to store a range in a string, e.g. '2-5'.
I tried $range = $numOne.'-'.$numTwo+1;
And $range stored the sum of $numOne+1!
I got it to work with,
$range = $numOne.'-'.($numTwo+1);
I understand why this works not not why my initial instinct didn't.
Could someone please enlighten me?
Thanks
James
I want to store a range in a string, e.g. '2-5'.
I tried $range = $numOne.'-'.$numTwo+1;
And $range stored the sum of $numOne+1!
I got it to work with,
$range = $numOne.'-'.($numTwo+1);
I understand why this works not not why my initial instinct didn't.
Could someone please enlighten me?
Thanks
James