MySQL Forums
Forum List  »  PHP

What does 'array (0 => $rowA, $rowB, etc)' mean?????
Posted by: nguyyen Minh
Date: September 21, 2017 10:34AM

Hi everyone, I from vietnamese
I have a line of code which is similar to the following:

$a = array (0 => $rowA, $rowB, $rowC, $rowD, etc, etc,....);

The $rowA, $rowB, etc all refers to row names extracted from a mySQL database.

I'm struggling to find out what the '0 =>' is being used for.

Can anyone explain?

Many thanks,
Nguyen Minh

Options: ReplyQuote


Subject
Written By
Posted
What does 'array (0 => $rowA, $rowB, etc)' mean?????
September 21, 2017 10:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.