first off all, thanks to everyone in this forum who has taken the time to help out. it is extremely appreciated!
now, on to the question. i have two string arrays that i need to step through, checking to see if items in one also belong to the other.
$allShadingGroups[]
$shadingGroupsUsed[]
i'd like to step though the former, deleting each item that does not belong to the latter. i'm thinking a series of nested for loops, but am not sure of the proper way to set this up.
for ($node in $allShadingGroups){
for ($node2 in $shadingGroupsUsed){
//some comparison here
//delete item
}
}
i know this logic is wrong, but can't seem to grasp the proper way to set this up. or, is this even the best way to tackle this?
any and all help is appreciated!
thanks in advance.