Код: Выделить всё
"PriceBreaks": [
{
"Quantity": 1,
"Price": "$12.10",
"Currency": "USD"
},
{
"Quantity": 5,
"Price": "$11.76",
"Currency": "USD"
},
{
"Quantity": 10,
"Price": "$11.42",
"Currency": "USD"
},
{
"Quantity": 25,
"Price": "$10.75",
"Currency": "USD"
}
],
Мой ожидаемый результат такой:
Код: Выделить всё
+ Quantity is 1 => price is $ 12.10
+ Quantity is 4 => price is 4 * $ 12.10
+ Quantity is 5 => price is 5 * $ 11.76
+ Quantity is 8 => price is 8 * $ 11.76
Подробнее здесь: https://stackoverflow.com/questions/646 ... ty-for-php
Мобильная версия