<?php if(count($errors) > 0) : ?> <div> <?php foreach ($errors as $error) : ?> <p><?php echo $error ?></p> <?php endforeach ?> </div> <?php endif ?>
Am new to PHP, trying to make a website that let you register and when I want to display that user did not fill up forms this error appear, need a solution I know that count doesn't work for this from version 7.2 of PHP but i can't figure out how to get this to work