Multidimensional array
| From: | Mako Shark | Date: | Thu, 28 Nov 2002 17:11:03 +0000 |
| Subject: | Multidimensional array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-126423@lists.php.net to get a copy of this message | ||
(Thanks to all who've replied about the streaming
audio. Haven't had a chance to respond or anything
yet.)
Here is a problem I'm having similar to somethnig
someone just posted, but not quite the same. I'm not
toooooo experienced with the intricacies and
complications of arrays, but I have a bunch of fields
like this for a magazine organizer (best way to put
it, I guess):
$issuenumber[]
$issueheadline[]
$issuewriters[]
$issuemonth[]
$issueyear[]
$issuedescription[]
among other fields.
I would like to store this all in one multidimensional
array, like
$issue->number[]
$issue->headline[]
etc.
What is the syntax? I'm bumbling around right now.
Also, if I sort() the array by number, would the rest
of the fields be properly sorted? I assume so, but
don't want to find out the hard way that it doesn't.
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com