Apologies noob question and I'm usually good at figuring this out.
I have an array with the values:
{
"carriage": [{"Net":"586.54999999999995"}],
"totalNet":[{"Net":"16734657.34"}],
"creditCarrage":[{"Net":"9.5"}],
"creditTotal":[{"Net":"5712.6999999999998"}]
}
I've tried to return to screen just the carriage net value however I get the error
Undefined index: Net
From the attempt
return $stats['carriage']['Net'];