title: StripTags and MysqlRealEscape an array with PHP
body: <p>I want to strip HTML code from multiple fields. So I used: </p>
  
  <p><code>extract($_POST)</code></p>
  
  <p>Then an insertion into the table. </p>
  
  <p>I won't strip each field like:</p>
  
  <pre>
  <code>
  $user  = strip_tags($user);
  $email = strip_tags($email);
  .....
  </code>
  </pre>
  
  <p>There is any solution to strip my extract($_POST) array?</p>
  
  <p>The same for mysql_real_escape_string()</p>
  
  <p><strong>EDIT 1</strong>
  I won"t use </p>
  
  <pre>
  foreach($_POST as $key => $value){
    $_POST[$key] = mysql_real_escape_string(strip_tags($value));
  }
  </pre>
  
  <p>I want to use the short variable: <br />
  <pre>
  $name, $email
  </pre> <br />not: <br /></p>
  
  <pre>$_POST['name'] , $_POST['email']</pre>
  
  <p>And without extract() as is deprecated.</p>
  
  <p><strong>Edit 2</strong> the solution is:</p>
  
  <pre>
  foreach($_POST as $key => $value){
    $$key = mysql_real_escape_string(strip_tags($value));
  }
  </pre>