title: strip_tags() expects parameter 1 to be string - error
body: <p>After months of use my application form suddenly stopped with this error:</p>
  
  <pre><code>Warning: strip_tags() expects parameter 1 to be string, array given in /home/useraccount/public_html/My_Application.php on line 9
  </code></pre>
  
  <p>line 9 begins the cookie, but even if I remove that it seems to be related to the <code>strip_tags</code> line. Why would this suddenly stop working? 
  This has worked for months with no issues. The server was <code>5.3</code> and I see an upgrade to <code>5.3.26</code>. Could that change have actually caused this?</p>
  
  <pre><code>if ($_POST)
  {
      session_set_cookie_params(0);
      session_start();
      $post = new stdClass; 
      foreach ($_POST as $key =&gt; $val)
      $post-&gt;{$key} = trim(strip_tags($_POST[$key]));
      $post-&gt;accident_type =$_POST['accident_type'];
      $_SESSION['post']=$post;
  } 
  more code continued...
  </code></pre>
  
  <p>Any help greatly appreciated.</p>