I was looking at some code and I came across this line:
Machine drink[] = {{"Coke", .75,7}, {"Sprite", .55, 2}, { "Pepsi", 1.00, 5}}
At first I thought it was an array, but in php we don't create arrays like this, unless if this is some advanced technique for creating an array that I am not aware of.
And why is it constructed like this?
Coke is a soda.
.75 is the price
And 7 is quantity.