title: How to check strlen of multiple input fields with short code
body: <p>Multiple input fields like </p>
  
  <pre><code>&lt;input type="text" name="row1[]" id="date1"&gt;
  &lt;input type="text" name="row1[]" id="amount1"&gt;
  &lt;input type="text" name="row1[]" id="name1"&gt;
  &lt;input type="text" name="row1[]" id="document1"&gt;
  </code></pre>
  
  <p>Want to check if number of characters in certain fields (<strong>not all fields</strong>) is at least 1 (in the example do not want to check number of characters in id="document1". Now using this code</p>
  
  <pre><code>if ( (strlen($_POST['row1'][0]) &gt;= 1) or (strlen($_POST['row1'][1]) &gt;= 1) or (strlen($_POST['row1'][2]) &gt;= 1)) ) {
  }
  </code></pre>
  
  <p>Is it possible to shorten code to something like (this is not working code)?</p>
  
  <pre><code>if ( (strlen($_POST['row1']??want_to_check??) &gt;= 1) ) {
  }
  </code></pre>
  
  <p>And input something like (also not working and not real)</p>
  
  <pre><code>&lt;input type="text" name="row1[]??want_to_check??" id="date1"&gt;
  &lt;input type="text" name="row1[]??want_to_check??" id="amount1"&gt;
  &lt;input type="text" name="row1[]??want_to_check??" id="name1"&gt;
  &lt;input type="text" name="row1[]??do_not_want_to_check??" id="document1"&gt;
  </code></pre>
  
  <p>Check number of characters only in certain fields (not all fields)</p>