PHP: Change color of text based on $value

Posted by Kevin Brown on Stack Overflow See other posts from Stack Overflow or by Kevin Brown
Published on 2010-05-10T15:59:35Z Indexed on 2010/05/10 16:04 UTC
Read the original article Hit count: 123

Filed under:
|
|

What's the easiest way to change a text's color based on a variable?

For example: If $var is between 1-5, green. Between 6-10, Orange. Greater than 11, Red.

© Stack Overflow or respective owner

Related posts about php

Related posts about change