Click to See Complete Forum and Search --> : Strange problem in basic issue


Andrzej
December 8th, 2010, 04:03 AM
please help

I'm confused I don't understand ( please find enclosed shootscreen file )

I have an array.
I load 10 elements in the array {0,1,2,...9}
and as result I have sizeof($arr) equal to 11
why ???

thanks in advance

PeejAvery
December 8th, 2010, 09:33 AM
Because you initialized your array wrong.

$arr = array();

Andrzej
December 8th, 2010, 12:38 PM
absolutly you are right.

I've get up at 6AM, next I opened php editor and within 10 sec. I found my fault.
5 hours before (during the night) I check "everything" and I couldn't solve my "problem", but after a few hours' sleep I solved it within few seconds.

sorry, I posted this thread in a rush moment

thanks a lot