Archive for the ‘PHP’ Category

A Better Way To Globalize

Lately I’ve been working quite a bit with some PHP code that made heavy use of global variables. It made the code quite rigid to work with. Luckily there’s a much better way: the registry pattern.