GLOBALS ARE BAAAAAAADDDD!!!!!

Posted by Matt on Stack Overflow See other posts from Stack Overflow or by Matt
Published on 2010-05-30T00:09:57Z Indexed on 2010/05/30 0:12 UTC
Read the original article Hit count: 331

Filed under:
|
|

HOWEVER! would setting the $link to my database be one thing that I prolly should use a GLOBAL scope for? In my setting of (lots of functions)...it seems as though having only one variable that is on the global scope would be wise.

I am currently using the functions to transfer it back and forth so that way I do not have it on global...but it is a bit of a hinder to my script.

Please Advise,

Thank you. Matt

© Stack Overflow or respective owner

Related posts about php

Related posts about scope