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

global variables, e.g. $wgversion, $wgtitle. Always use this for new globals, so that it's easy to spot missing "" declarations. In extensions, the extension name should be used as a namespace delimiter. For example,, not.
 * Global declarations should be at the beginning of a function so dependencies can be determined without having to read the whole function.