Jump to content

What Might Cause An Array To Display Array ( ) With No String Data?


idkwhy

Recommended Posts

I am trying to set up my error handling system and I have all the arrays set like so--

 

 
$errormsg[] = 'You need to enter both a username and a password.';
$errormsg[] = 'Incorrect username or password';

 

etc etc

 

I have

print_r($errormsg)

somewhere else to display the arrays, but the only thing it outputs is Array ( ). Is there any reasons off the bat it would be empty like that? I realize I have to set $errormsg = array(); which I've done. Originally it was working fine, but I accidentally deleted that line and that's when it started acting up. I added it back but I'm only getting Array ( )

 

Anyone have any ideas? This is driving me CRAZY.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.