CChoiceFormat

CChoiceFormat

Package system.i18n
Inheritance class CChoiceFormat
Source Code framework/i18n/CChoiceFormat.php
CChoiceFormat is a helper that chooses an appropriate message based on the specified number value. The candidate messages are given as a string in the following format:
'expr1#message1|expr2#message2|expr3#message3'
where each expression should be a valid PHP expression with 'n' as the only variable. For example, 'n==1' and 'n%10==2 && n>10' are both valid express