Auto incrementation question
Posted: Tue Jul 08, 2003 10:42 am
Relative newbie here... asp / perl background.. loving php now. It's so... elegant !!
Anyway... question as follows. Simple webpage here is the erroring script
$somearray["somevalue"]++;
Error stats that value is undefined ( cause it doesn't exists first time its hit ) but increments it fine as if it was zero from the get go.
So it does what i need, but i could skip error message in my HTML
Sorry if this is a dumb newb question... i'm still learning.
Thanks.
fd
Anyway... question as follows. Simple webpage here is the erroring script
$somearray["somevalue"]++;
Error stats that value is undefined ( cause it doesn't exists first time its hit ) but increments it fine as if it was zero from the get go.
So it does what i need, but i could skip error message in my HTML
Sorry if this is a dumb newb question... i'm still learning.
Thanks.
fd