convert associative array to ordinary array



Hi,

i have an associative array and i want to use it as an
ordinary array, is that possible?

what i mean is instead of $arr['fruit'] i want to call
it by its position in the array $arr[3]

thanks


____________________________________________________________________________________
Never miss a thing. Make Yahoo your home page.
http://www.yahoo.com/r/hs

.



Relevant Pages

  • 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. ...
    (comp.lang.ruby)
  • 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, ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: newbie: "array" of problems :( eech!
    ... In javascript it is possible to add named properties to all objects at runtime by assigning values to those properties, and then retrieve those values with the property names. ... Differing from ordinary objects in that if the property names used with them are "length" or an 'array index' assignments to those property names may have side effects. ... The problems with treating javascript objects as an "associative array" is that no javascript objects are ever 'empty'. ...
    (comp.lang.javascript)
  • 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", ...
    (comp.lang.fortran)
  • Re: array.["property"]
    ... keyed by a name rather than an index, making data possible retrieval without ... which is clearly "like an associative array". ... He who claims that "associative array" is not a justified term in ...
    (comp.lang.javascript)