How can I make something like this below work?
<?PHP
$_SESSION['signup_errors']['test1'];
$_SESSION['signup_errors']['test2'];
$_SESSION['signup_errors']['test3'];
$_SESSION['signup_errors']['test4'];
foreach ($_SESSION['signup_errors'] as $key => &$value) {
echo $value;
}
?>
Warning: Invalid argument supplied for foreach()