Код: Выделить всё
The Boys in the Boat Daniel James Brown 067002581X 19.99 5 16.99 9 16.99
Harry Potter and the Cursed Child J. K. Rowling, Jack Thorne, John Tiffany 1338099133 18.95 25 17.98 0 17.98
Just Mercy Bryan Stevenson 0812994520 17.50 8 16.25 10 16.25
Me Before You Jojo Moyes 0670026603 18.95 2 17.50 1 17.25
A Thousand Splendid Suns Khaled Hosseini 1594489505 19.00 7 15.50 4 14.95
The Wright Brothers David McCullough 1476728742 21.95 3 18.95 3 18.95
У меня нет проблем с созданием массива с нуля, я уже это сделал. ..массив должен выглядеть так:
Код: Выделить всё
$books = array(
"The Boys in the Boat" => array (
"author" => 'Daniel James Brown',
"isbn" => '067002581X',
"hardcover" => 19.99,
"quantity" => 5,
"softcover" => 5.99,
"e-book" => 6.99,
),
"Jungle" => array (
"author" => 'Upton Sinclair',
"isbn" => '067002581',
"hardcover" => 19.99,
"quantity" => 5,
"softcover" => 5.99,
"e-book" => 6.99,
),
);
Подробнее здесь: https://stackoverflow.com/questions/395 ... rays-using
Мобильная версия