You are here: custom superglobals? « PHP « IT news, forums, messages
custom superglobals?

Posted by Justin French on 01/14/05 03:52

Hi,

Is it possible to define my own superglobal variable or array?
Rather than doing `global $cfg;` in all of my functions, I'd like to
just set $cfg as a superglobal in one place and forget about it.

Yes, I'm aware I could use $GLOBALS['cfg'], but I'd much prefer it
worked like $_GET etc.

---
Justin French, Indent.com.au
justin.french@indent.com.au
Web Application Development & Graphic Design

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация