Checking if an array contains all elements of another array

后端 未结 6 646
滥情空心
滥情空心 2020-12-06 19:23

I\'m designing an electrical engineering application. However, i\'m stuck on this: I have the following array



        
6条回答
  •  死守一世寂寞
    2020-12-06 20:01

    Count the total of $GroupOfEight[$i]
    Count the total of $myStack
    if totals are equal:
    In a loop -
    if $myStack[$c] is in_array($GroupOfEight[$i]): $equal = 1
    else $equal = 0; exit;

    if $equal == 1 -> arrays are identical

提交回复
热议问题