Results 1 to 3 of 3

Thread: [RESOLVED] global > arrays

  1. #1

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Resolved [RESOLVED] global > arrays

    Why will this not work

    PHP Code:
    global $config['announcement_type']; 
    Error:

    Parse error: syntax error, unexpected '[', expecting ',' or ';' in C:\xampp\htdocs\Meltdown Software\settings\settings.php on line 237

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: global > arrays

    You cannot import a single part of a variable; you may only import whole variables.

    PHP Code:
    global $config

  3. #3

    Thread Starter
    Frenzied Member I_Love_My_Vans's Avatar
    Join Date
    Jan 2005
    Location
    In the PHP compiler
    Posts
    1,275

    Re: global > arrays

    Thanks dude

    PHP Code:
    $rep['penagate']++; 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width