How can I use the array_diff function to get the elements in one array that are not in another array in PHP? Example code: - Biz Tech

How can I use the array_diff function to get the elements in one array that are not in another array in PHP? Example code:

Listen
$fruits1 = array("apple", "banana", "orange");
$fruits2 = array("banana", "grape", "orange");

$diff_fruits = array_diff($fruits1, $fruits2);

print_r($diff_fruits);