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!
But why does it happen? Why even issue a notice saying that an array is yet to be created, yet it still works anyways. That is just dumb.
In my case, I often use it in a switch. And hae a default: in the switch in case it isn't defined yet. Unless I turn Notices off in error_reporting, this is bad for me. sucks.
They get a default value of NULL when the index is undefined. It's typically not a big issue using an undefined value, but it is good to know that you are using one in case you have a bug related to it..