title: Parse error: syntax error, unexpected T_STRING, expecting ']'
body: <p>I am getting error on my site Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/kbccsystem/kbccsystem.php.xdomain.jp/public_html/register.php on line 69</p>
  
  <p>My PHP code in FROM line 69 to 96 is:</p>
  
  <pre><code>$allowedformat = array("gif" , "jpeg", "jpg" , "png");
  $temp = explode(".", $_FILES["img_path"]["name"]);
  $extension = end($temp);
  
  if ((($_FILES["file"]["type"] == "image/gif")
  || ($_FILES["file"]["type"] == "image/jpeg")
  || ($_FILES["file"]["type"] == "image/jpg")
  || ($_FILES["file"]["type"] == "image/pjpeg")
  || ($_FILES["file"]["type"] == "image/x-png")
  || ($_FILES["file"]["type"] == "image/png"))
  &amp;&amp; ($_FILES["file]["size"] &lt; 20000 )
  &amp;&amp; in_array($extension, $allowedformat)) {
  
  if(is_uploaded_file($_FILES["img_path"]["tmp_name"]))
  {
  if(move_uploaded_file($_FILES["img_path"]["tmp_name"], "shop_image/" .$_FILES["img_path"]["name"]))
  { 
  chmod("shop_image/" .$_FILES["img_path"]["name"], 0644);
    echo "アップロードしました。";
      }else{
        echo "ファイルをアップロードできませんでした。";
      }
      }else{
        echo "ファイルが選択されていません。";
      }
      }
      }
  </code></pre>
  
  <p>Start line is 69. Last line is line 96.</p>
  
  <p>please help :)
  thankyou.</p>