count(): Argument #1 ($value) must be of type Countable|array...

count(): Argument #1 ($value) must be of type Countable|array...

Fatal error: Uncaught TypeError: count(): Argument #1 ($var) must be of type Countable|array, null given in

The code was working perfectly until when I installed XAMPP 8 (PHP 8). I don't know why I am getting this error. Please help. if(isset($_POST["submit"])){ @$subject = $_POST['subject'...

stackoverflow.com

from http://beaveryun.tistory.com/143 by ccl(A) rewrite - 2021-12-18 13:27:04