Zend - The PHP Company




Code Gallery: rlaurie


Static Arrays  

Type: code fragment
Added by: rlaurie
Entered: 23/08/2006
Last modified: 09/12/2005
Rating: - (fewer than 3 votes)
Views: 1976
This is the method I use to work with flags and their string counter-parts when working on non-OO projects. It's nice because it keeps these flag strings out of global scope, while only using one static copy of the array through the entire lifespan of the script.




Search