How to construct an associative and numeric indexable array
The docs for MS's SQLSRV PHP interface sayes:
"Based on the value of the $fetchType parameter, the returned array can be a
numerically indexed array, an associative array, or both."
It might be helpful to have such an array in some other places.
How is it done?
- Duck Typed Concepts for Ruby (was Re: A use case for an ordered hash)
... An Sequencable mixin can be defined that implements all sorts of operations such as append, concat, splice, sort, etc. ... extending an instance of Array with Sorted if the array is known to be sorted. ... Now returning to the thread at hand we can see that the difference between the associative array and hash hierarchies is that the hash hierarchy depends upon Hashable keys. ...
- Re: Returning a Dictionary from a webservice
... There is no such thing as "associative array" in XML Schema. ... If a client needs to access this data in an associative manner, ...
- Re: newbie: "array" of problems :( eech!
- Re: COMMON structures and text parsing
... The place where this choice is not "cleaner" is when you need to ... index into an array using a logical value. ... Logicals do not. ... do an associative array of logicals and do it "right", ...
- Re: Re: arrays
... "Michael Fesser" wrote: ... > Itís called an associative array, where the keys are strings. ...