Using the length of a string, I want to scale the font size up/down based on that.
So, lower string length, higher number. Higher string length, lower number.
But I don't want to do dozens upon dozens of if/else or a switch statement. Ideally I'd programmatically scale the output based on the input.
Something like...
text_length = strlen($full_text)
size_range = range(0, 5)
// if text_length = 1 then 100% of size_range
// if text_length = 280 then 0% of size_range
In this case, the maximum text length is 280 (they're tweets).