CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 1999
    Location
    Poland
    Posts
    278

    Strange problem in basic issue

    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
    Attached Images Attached Images

  2. #2
    Join Date
    May 2002
    Posts
    10,943

    Re: Strange problem in basic issue

    Because you initialized your array wrong.

    PHP Code:
    $arr = array(); 
    If the post was helpful...Rate it! Remember to use [code] or [php] tags.

  3. #3
    Join Date
    Jul 1999
    Location
    Poland
    Posts
    278

    Re: Strange problem in basic issue

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured