Translations:Manual:Coding conventions/PHP/216/en

But if you're considering a multi-line expression with a ternary operator, please consider using an $if block instead. Remember, disk space is cheap, code readability is everything, "if" is English and  is not. If you are using a multi-line ternary expression, the question mark and colon should go at the beginning of the second and third lines and not the end of the first and second (in contrast to MediaWiki's Javascript convention).