which seems to work, but produces… Warning : sizeof(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\DCT\2\racks\show_rack.php on line 411
It’s not at all clear, nor logical in any way that I can think of, to request the sizeof something called “$assetArray >= 1”. I suspect you want to test if the size of the array is >= 1, and have just put a parenthesis in the wrong place.
is_countable() - Verify that the contents of a variable is a countable value
Edit:
Try adding declare(strict_types=1); as the first statement in the PHP file which will halt the process and produce errors instead of warnings which may be hidden.