JSON decode :
$test=json_decode($tableData,TRUE);
The result of this was:
[{
"IngredientName": "Sunflower",
"Quantity": "6",
"Free_Quantity": "0",
"Rate": "6"
}, {
"IngredientName": "ganapathi",
"Quantity": "6",
"Free_Quantity": "0",
"Rate": "6"
}]
How do I access the IngredientName
from each element of the result array, using a for..each
loop?