I use this code to check if values exist in an array:
if (!in_array(array("Product code","Price","Supplier","Cost Price"), $data)) {
die("You are missing fields");
}
Works fine but I would like it to return the value that does not exist so if th array was this:
$data = array("Price","Supplier","Cost Price");
PHP would return "Product code is not in array"