IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Arrays and Dictionaries
An array is just a collection, with the usual stipulation that you can access any element by a numeric index. On the other hand, a dictionary (also known as a hash) is a lookup table that has a key to a data value. Some languages emulate an array by means of a dictionary, where a numeric value can be used as a key. Given that your examples use non-numeric indexes, I'd be inclined to say that it more resembles a dictionary, rather than a classic array (at least in the contiguous memory model of C).
New And you're the pedant Jay warned about :-)
Yes, Chris (the first Chris) you've got it exactly right. And once you get to the parts of PHP dealing with database access, you'll see that the functions already map columns to array indices pretty well. Before you get there, let me recommend using one of the DB layers like like [link|http://pear.php.net/manual/en/package.database.db.php|PEAR:DB]. You don't want to worry about MySQL vs. Postgres vs. Oracle issues any more than you have to.
===

Purveyor of Doc Hope's [link|http://DocHope.com|fresh-baked dog biscuits and pet treats].
[link|http://DocHope.com|http://DocHope.com]
     Learning PHP: Comprehending Arrays - (cwbrenn) - (7)
         Re: Learning PHP: Comprehending Arrays - (orion)
         Looks like you have it - (JayMehaffey)
         Arrays and Dictionaries - (ChrisR) - (1)
             And you're the pedant Jay warned about :-) - (drewk)
         Yes, that's largely correct. - (static) - (2)
             Oh yes, do avoid that - (drewk) - (1)
                 I had to experiment with them before I understood them. - (static)

Sorry about the mass of technical details.
49 ms