title: Converting post data to string
body: <p>I'm writing a php program that will convert user input to a string and count the times each character is used, eventually for each word.  Does anyone know how to convert the post data to a string?  I was looking at <a href="https://www.daniweb.com/programming/web-development/threads/8158/array-to-string" rel="nofollow">implode</a> and <a href="http://php.net/manual/en/function.count-chars.php" rel="nofollow">count_chars</a>, but implode isn't converting to string like expected.  I'm not sure how to show the error that it is encountering to give more information. I'm running it and writing it in phpFiddle.  I'm not sure how to run it elsewhere.  Please give info on what could be wrong with implode, how to show errors in phpFiddle, or run this in a browser without phpFiddle.</p>
  
  <pre><code>&lt;?php
       echo $_POST['value'];
       $post_string = implode($_POST);
       foreach (count_chars($post_string, 1) as $i =&gt; $val) {
           echo "there were $val instances of \"", chr($i) , "\" in the string. \n";
       }
  ?&gt;
  &lt;form method="post" action=""&gt;
  &lt;input type="text" name="value"&gt;
  &lt;input type="submit"&gt;
  &lt;/form&gt;
  </code></pre>