PHP Change color of text based on $value (ctype_alpha)
What's the easiest way to change a text's color based on a variable (ctype_alpha) in PHP? In a table on mysql I have updates about some tasks' status (pending/processing/processed) For example: If $var is PENDING-> red; PROCESSING-> yellow; PROCESSED-> green. I know how to do it with numbers, but can't find a solution with text
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.