1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Extern variable is in php or not

Discussion in 'Web Design, HTML And CSS' started by deepakagrawal, Apr 13, 2007.

  1. deepakagrawal

    deepakagrawal New Member

    Joined:
    Apr 13, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    0
    hello,
    i am deepak, and i want to know there is extern variable in php or not, or if yes so how can i achive that.
    thanks
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,287
    Likes Received:
    364
    Trophy Points:
    83
    All variables are by default global and they are available from the point of declaration to any other file that is after the declaration but if you have some function or class you need to redeclare the variable in that class by the global keyword.
     

Share This Page