[Solved] Check if values are present in an array based on another array [duplicate]


As you showed no effort in solving your problem, make effort in understanding this):

echo count($check['offer']) == count(array_intersect($check['basket'], $check['offer'])) ? 'All present' : 'Nope';

1

solved Check if values are present in an array based on another array [duplicate]