[PHP] help with a simple upload script

Sorry I am very new to PHP and I tried to follow the directions on a simple file uploading script, but I get this error when I submit the form:

Parse error: syntax error, unexpected T_STRING, expecting ‘]’ in C:\wamp\www\php\do_upload.php on line **4

**

<?php
$file_dir = "C:\\wamp\\www\\php\\uploads\\";
 foreach($_FILES as $file_name => $file_array) {
      echo "path: ".$file_array['"tmp_'name"]."<br />
";
      echo "name: ".$file_array[''"name"]."<br />
";
      echo "type: ".$file_array["'type'"]."<br />
";
      echo "size: ".$file_array[''"size"]."<br />
";
 
      if (is_uploaded_file($file_array['"tmp_'name"])) {
        move_uploaded_file($file_array['"tmp_'name"],
           "$file_dir/".$file_array["name"]") or die ("Couldn't copy");
        echo "file was moved!<br />";
    }
 }
 ?>

I think I have way too many single quotes, but I’m not sure.