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
www.chessish.com <http://www.chessish.com> 

        ----------
        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
do
        like in C ie. $pos[17][7][3] = 0;?  Or, will I have to do initialize
every
        single element of array to zero by using loop?

        Thank you.
        Pong
        

-- 
PHP General Mailing List (http://www.php.net/)
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