I have variable let says $ingredients which contains
Flour, sugar, shortening, plant fats and oils, egg, cornstarch, cake OMath, dextrose,
whey powder, cocoa powder, lactose, whole milk powder, salt, powdered skimmed milk,
dextrin, coffee powder, butter oil, sweetened condensed skimmed milk, dried egg yolk,
leavening agent, colouring (caramel, annatto and carotene), emulsifier (soybean origin), fragrances.
Now I want to grouping its $ingredient
If $ingredients contain emulsifier and shortening, it wil shows
(echo)"Good Product"However if there is no emulsifier and shortening, it is "Best product"
(else echo "Best product"
How to code this in php ?
Thank you very much
$ingredientsan array or a string?