Check if multiple strings are empty
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3559542/more-concise-way-to-check-to-see-if-an-array-contains-only-numbers-integers">More concise way to check to see if an array contains only numbers (integers)</a> <br>
  <a href="http://stackoverflow.com/questions/9057477/php-checking-if-empty-fields">PHP checking if empty fields</a></p>
</blockquote>



<p>I have form that submits 10 fields, and 7 of them should be filled, here is how i chek it now in PHP:</p>

<pre><code>if (!$name || !$phone || !$email || !$mobile || !$email || !$state || !$street || !  $city) {
        echo '&lt;div class="empty_p"&gt;You have empty fields!!!&lt;/div&gt;';}
else{
        //process order or do something
}
</code></pre>

<p>My question is: is there more simple way to do this? Because sometimes I have even more strings to check (12-15)</p>
