PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Apparently you can't use numbers as array identifiers only letters. For example:
$_SESSION['12'] = "cow"; This will work fine for the page you are on but can not be saved in the session data file. (this is what I was doing).
$_SESSION['twelve'] = "cow"; Works just fine.
Why is PHP written this way? It seems that numerics are commonly used in this manner in other languages.
In my script I'm writing lots of data into the $_SESSION array using for loops. $_SESSION[$i]="some data"; So this is going to cause some problems. I'll have to sit down and think about this. Thanks again for all your help guys.
- Evan
uh, right. And I couldn't find a bug report for that (which doesn't mean there is one )
Maybe you want to post one?
Seems to affect only the top-level of $_SESSION