title: Javascript not replacing InnerHTML in PHP Script
body: <p>I have been working on a Garry's Mod loading screen recently and basically I was attempting to 'simplify' the map name by replacing it with a phrase. However, it appears PHP isn't printing the array value.</p>
  
  <pre><code>$map = $_GET["map"];
  $map_list = array (
      "gm_construct" =&gt; "Construct",
      "gm_flatgrass" =&gt; "Flatgrass"
  );
  if (in_array($map, $map_list) == true)
  {
      if ($map == $map_list[1])
      {
          print("&lt;script&gt;document.getElementById('map_name').innerHTML = '" . print($map_list['gm_construct']) . "'&lt;/script&gt;");
      }
      else if ($map == $map_list[2])
      {
          print("&lt;script&gt;document.getElementById('map_name').innerHTML = '" . print($map_list['gm_flatgrass']) . "'&lt;/script&gt;");
      }
  }
  </code></pre>