('equal to', 'greater than', 'less than')[ $number1 <=> $number2 ],
Neat trick grinder! Much better than nested ternary expressions.
dmm
You can give a man a fish and feed him for a day ...In reply to Re(2): How do i print a variable back when it has been altered?
by dmmiller2k
in thread How do i print a variable back when it has been altered?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |