title: How can I check variable php in a better way?
body: <pre><code>if (isset($_POST['register'])) {
      $email = $_POST['email'];
      $username = $_POST['username'];
      $pass = $_POST['password'];
      $rep_pass = $_POST['rep-password'];
      $firstname = $_POST['firstname'];
      $surname = $_POST['surename'];
      $phonenr = $_POST['phone-nr'];
      $place = $_POST['place'];    
  }
  
  if ($email != "" &amp;&amp; $username != "" &amp;&amp; $pass != "" &amp;&amp; $rep_pass != "" &amp;&amp;  $firstname != "" &amp;&amp; $surname != "" &amp;&amp; $phonenr != "" &amp;&amp; $place != "") { 
  
  }
  </code></pre>
  
  <p>Is there a shorter way to do the same as what I'm doing in the condition of the second  <code>if</code> statement?</p>