I am working in a laravel project. I've an array named $headings like this-
0 => array:1 [
0 => array:5 [
0 => "name"
1 => "phone_number"
2 => "department"
3 => "division"
4 => "status"
]
]
]
And I've another sample array named $sample_data like this-
array:3 [
0 => "name"
1 => "email"
2 => "meta_data"
]
How can I get the missing values of $sample_data in $headings array & get output for this example like this-
$result=['email', 'meta_data']
Thanks in advance.