title: Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in
body: <p>The code was working perfectly until when I installed <strong>XAMPP 8 (PHP 8)</strong>.</p>
  <pre><code>if(isset($_POST[&quot;submit&quot;])){
      @$subject = $_POST['subject'];
      @$term = $_POST['term'];
      @$session = $_POST['session'];
      @$size = count($_POST['adm_num']);
      @$size = count($_POST['ca1']);
      @$size = count($_POST['ca2']);
      @$size = count($_POST['ca3']);
  
      $i = 0;
      while ($i &lt; $size) {
          $ca1= $_POST['ca1'][$i];
          $ca2= $_POST['ca2'][$i];
          $ca3= $_POST['ca3'][$i];
          $adm_num = $_POST['adm_num'][$i];
      }
  }
  </code></pre>