title: fgetcsv() not working with variable $delimiter from $_POST
body: <p>I can't get <code>fgetcsv()</code> to work with a variable from <code>$_POST</code> </p>
  
  <pre><code>(  delimiter = (string)$_POST['delimiter'];)
  </code></pre>
  
  <p>I works if I specify: <code>$delimiter = "\t";</code></p>
  
  <p>but not when I use:   <code>$delimiter = (string)$_POST['delimiter'];</code></p>
  
  <ol>
  <li><p>HTML</p>
  
  <pre><code>&lt;html&gt;
  &lt;body&gt;
  &lt;form enctype="multipart/form-data" action="upload.php" method="post"&gt;
          1) Select a delimiter.&lt;br /&gt;
          &lt;input type="radio" name="delimiter" value="\t"checked="yes" /&gt; Tab&lt;br /&gt;
          &lt;input type="radio" name="delimiter" value=" "/&gt; Space&lt;br /&gt;
          &lt;input type="radio" name="delimiter" value=","/&gt; Comma&lt;br /&gt;
          &lt;input type="radio" name="delimiter" value=";"/&gt; Semicolon&lt;br /&gt;&lt;br /&gt;
          &lt;input type="hidden" name="MAX_FILE_SIZE" value="1000"&gt;
          2) Send this file: &lt;input name="userfile" type="file"&gt;&lt;br /&gt;&lt;br /&gt;
          3) &lt;input type="submit" value="Send Info"&gt;
  &lt;/form&gt;
  &lt;br /&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre></li>
  </ol>