I just want to know that is there any simplest way to achieve the requirements below?
I Have 2 arrays
ARRAY1=[ "1","5","3","4"]
and
ARRAY2=[ "1","1","5","5","3","4"]
firstly I want to check is ARRAY2
contains all the values in ARRAY1
.
i used array_unque
and the diff
which is working fine.
So now I want to also check is every values in ARRAY1
is repeat morethan one in array2
if it does return true..
How can I achieve this.. Iam a beginner.. can anyone help me with this?