<?php
function getRates() {
return array_fill(
0,
10000,
array (
'Board' => 'nin',
'Price' => 32,
'NetPrice' => 32,
'BookingFee' => 12,
'Tax' => 0,
'forfait' => 1,
'ProviderId' => 1
)
);
}
$rates = array ();
foreach (getRates() as $rate)
{
$rates[] = array (
'board' => $rate['Board'],
'price' => $rate['Price'],
'netprice' => $rate['NetPrice'],
'bookingfee' => $rate['BookingFee'],
'tax' => $rate['Tax']
);
}
preferences:
52.64 ms | 402 KiB | 5 Q