php array adding to empty array

bagsfr

Right off the assembly line
I am using array to add up numbers from database and wonder if this would be valid:

$array[10] = $array[10] + 1

However the initial array has not been set and is without value. Would it assume that it is equal to 0 and after the above line become 1?

I hope I am explaining this right

Thanks
 
Top Bottom