I have an array session with emails - I try to echo them to the screen and I get nothing appearing.
$_SESSION['extralistids'] = array('<[email protected]>', '<[email protected]>', '<[email protected]>', '<[email protected]>', '<[email protected]>');
echo 'You have visited this page ' . $_SESSION['extralistids'][$_SESSION['counter']] . ' -for the first time.';
I use this and it outputs fine:
$_SESSION['extralistids'] = array('abc', 'def', 'ghi', 'jkl', 'def', 'ghi', 'jkl', 'def', 'ghi', 'jkl', 'def', 'ghi', 'jkl');
I've tried replacing single quotes with double quotes - no joy. I'm doing something obviously wrong here but can't seem to spot the mistake - any thoughts where I am going wrong?