FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » static vs global variable
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
static vs global variable [message #172694] Sat, 26 February 2011 00:40 Go to previous message
tobycraftse is currently offline  tobycraftse
Messages: 1
Registered: February 2011
Karma:
Junior Member
if I have a couple of variable want to included by many php file

should i use global or static class variable?

global is kinda trouble as i need to delcare global every php file i
want to use it.

static variable do not need to declare up front
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Stats comp.lang.php (last 7 days)
Next Topic: ODBC Connection
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 15:22:20 GMT 2024

Total time taken to generate the page: 0.05069 seconds