As far as using them is concerned they are already zero (as indeed are
undefined elements). If you want force the type you'll have to step through
the array.

$pos[17][7][3] = 0; // will only set the value of that element, in PHP or C

Tim <> 

        From:  pong-TC [SMTP:[EMAIL PROTECTED]]
        Sent:  28 January 2002 19:07
        To:  [EMAIL PROTECTED]
        Subject:  Initializing Array

        Hello All

        I would like to initialize the array $pos[17][7][3] to zero.  Can i
        like in C ie. $pos[17][7][3] = 0;?  Or, will I have to do initialize
        single element of array to zero by using loop?

        Thank you.

PHP General Mailing List (
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to