#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    2
    Rep Power
    0
    i tried to use $GLOBALS["xyz[1]" to use the global variable in a function, but the script still stores the data in local variables. why to hell?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Location
    London
    Posts
    46
    Rep Power
    14
    try to define the variable like this;

    $GLOBAL["xyz"] = array('1','2','3');

    ...for example!

    or

    global $xyz = array(...); //etc

    You can then access the variable in both examples using $XYZ.

    Kelvin

    <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by mabraham:
    i tried to use $GLOBALS["xyz[1]" to use the global variable in a function, but the script still stores the data in local variables. why to hell? [/quote]



    [This message has been edited by releasedj (edited June 21, 2000).]

IMN logo majestic logo threadwatch logo seochat tools logo