title: Parse error: syntax error, unexpected '[' when uploaded into the hosting server
body: <p>I am using WAMP to develop my PHP based project and when using it no error appear. But after uploading it to hosting server, this error appears,</p>
  
  <pre><code>Parse error: syntax error, unexpected '[' in /data/multiserv/users/830768/projects/1970916/www/index.php on line 6
  </code></pre>
  
  <p>The code in line 6 is as following</p>
  
  <pre><code>render("/event_view.php",["title" =&gt; "Current Events","rows"=&gt;$rows]);
  </code></pre>
  
  <p>The render function is predefined and accepting the variables without an error in WAMP. I was searching other threads but the examples were not very clear ( I am not a expert in PHP). can anyone help me. I have little time to upload this to server and make this workig as this is a school project. Thank You!</p>