Price Range class

That’s a basic ternary operation, isn’t it? If the $minPrices[$a+1] element is set, then concatenate a “-” and the value of that array element to $line, otherwise do whatever comes after the : which is not in your quoted code, concatenate a “+” symbol in the post earlier.

2 Likes