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

In general, using boolean parameters is discouraged in functions. In $example, without looking up the documentation for $example2, it is impossible to know what those parameters are meant to indicate. Much better is to either use class constants, and make a generic flag parameter: