Apparently it's because it's more readable, and you can't get the operator precedence wrong.
On 15 May, 11:25, isk <[EMAIL PROTECTED]> wrote: > Hi all! > > Who can explain me why ife() function is implemented by cake ? I mean > why just not use ternary operation: > cond ? expr1 : expr2 > ?? > > Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
