On Mon, Feb 25, 2013 at 8:40 PM, Karl DeSaulniers <karl@xxxxxxxxxxxxxxx> wrote: > Hi Guys/Gals, > If I have an multidimensional array and it has items that have the same name > in it, how do I get the values of each similar item? > > EG: > > specialservices => array( > specialservice => array( > serviceid => 1, > servicename=> signature required, > price => $4.95 > ), > secialservice => array( > serviceid => 15, > servicename => return receipt, > price => $2.30 > ) > ) > > How do I get the prices for each? What would be the best way to do this? > Can I utilize the serviceid to do this somehow? > It is always going to be different per specialservice. Something appears to be amiss, as your array couldn't contain multiple items with the specialservice key (I'm assuming the second key 'secialservice' is just a typo), as any subsequent assignments would overwrite the previous value. Adam -- Nephtali: A simple, flexible, fast, and security-focused PHP framework http://nephtaliproject.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php