Jump to content

severndigital

Members
  • Posts

    355
  • Joined

  • Last visited

Everything posted by severndigital

  1. I have a multi-dimensional array that might look like this. Array ( [0] => Array ( [type] => feet [color] => red ) [2] => Array ( [type] => feet [color] => blue ) [3] => Array ( [type] => head [color] => blue ) [4] => Array ( [type] => body [color] => blue ) ) I say might because it's being handed different information each time, but the premise is still the same. I need to check for a color match but only on specific type combinations (head,body.feet). So basically I need to check if the array includes specific type combinations first, and then check them for color matches. so an array that had the above items would return TRUE for a match of Blue I'm having a tough time with this one. Any help would be great. Thanks!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.