title: How to debug "Parse error: syntax error, unexpected '['" in PHP?
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>line: 41, Parse error: syntax error, unexpected '[' in /home/acompanh/public_html/novosite/vipmin/team/index.php on line 41</p>
  </blockquote>
  
  <p>PHP file:   </p>
  
  <pre><code> &lt;?php
  $_SERVER['HTTP_REFERER'];
  $HTTP_REFERER = '';
  $_SERVER['DOCUMENT_ROOT'];
  $document = '';
  $_SERVER['SERVER_NAME'];
  $server = '';
  $_SERVER['SERVER_ADDR'];
  $ip = '';
  $retorno = 'libera';
  
  if ($retorno != 'libera') {
      echo $retorno;
      exit(  );
  }
  
  require_once( dirname( dirname( dirname( __FILE__ ) ) ) . '/app.php' );
  need_manager(  );
  need_auth( 'team' );
  $now = '';
  
  if ($_REQUEST['acao'] == 'site') {
      $condition = array( '' . 'end_time &gt; ' . $now );
  }
  
  strval( $_GET['team_title'] );
  $team_title = '';
  strval( $_GET['city_id'] );
  
  if ($city_id) {
      $condition['city_id'] = $city_id;
  }
  
  
  if ($team_title) {
      $condition[] = 'title LIKE \'%' . mysql_escape_string( $team_title ) . '%\'';
  }
  
  Table::count( 'team', $condition );
  $count = '';
  pagestring( $count, 20 )[2];
  $pagestring = time(  );
  [1];
  $offset = ;
  [0];
  $pagesize = ;
  DB::limitquery( 'team', array( 'condition' =&gt; $condition, 'order' =&gt; 'ORDER BY id DESC', 'size' =&gt; $pagesize, 'offset' =&gt; $offset ) );
  $teams = ;
  Table::fetch( 'category', Utility::getcolumn( $teams, 'city_id' ) );
  $cities = $city_id = ;
  DB::limitquery( 'partner', array( 'order' =&gt; 'ORDER BY id DESC' ) );
  $partners = ;
  Utility::optionarray( $partners, 'id', 'title' );
  $partners = ;
  $selector = 'index';
  include( template( 'manage_team_index' ) );
  ?&gt;
  </code></pre>