title: Syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')'
body: <p>I've followed the tutorial in <a href="http://www.youtube.com/watch?v=v7vCp_TFcdU" rel="nofollow">these</a> <a href="http://www.youtube.com/watch?v=vI4NkAERO0E" rel="nofollow">YT videos</a> to build a language switcher and bilingual site in PHP (no framework). When I try to test it in WAMP, however, I get the following error:</p>
  
  <p><strong>Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in C:\wamp\www\skydoll\lang\francais.php on line 6</strong></p>
  
  <p>I have found by searching this site that this is often caused by the line above the reported error line, but being new to PHP I can't seem to find anything wrong with the code.</p>
  
  <pre><code>&lt;?php
  
  $lang = array(
  'hello' =&gt; 'Bonjour',
  'goodbye' =&gt; 'Au revoir'
  );
  
  ?&gt;
  </code></pre>
  
  <p>Anything looks out of place?</p>
  
  <p>Before I got to this point, however, I got other syntax errors in the file init.php, which is the file calling francais.php. Could the error be coming from there? I'll include the code for that as well in case:</p>
  
  <pre><code>&lt;?php 
  session_start();
  
  $allowed_lang = array('english', 'francais');
  
  if (isset($_GET['lang']) === true &amp;&amp; in_array($_GET['lang'], allowed_lang) === true) {
  $_SESSION['lang'] = $_GET['lang'];
  } else if (isset($_SESSION['lang']) === false) {
  $_SESSION['lang'] = 'francais';
  }
  
  include 'lang/' . $_SESSION['lang'] . '.php';
  ?&gt;
  </code></pre>
  
  <p>Thank you in advance for your help.</p>