Open chris-peng-1244 opened 9 years ago
This is the correct format array like
[
'books' => [
'book' => [
[
'title' => 'book1',
'price' => 10.00,
],
[
'title' => 'book2',
'price' => 10.00,
]
]
]
@yasinkocak if xml likes
<Books cate_id="123">
<Book>
<Title>Book1</Title>
<Price>10.00</Price>
</Book>
<Book>
<Title>Book2</Title>
<Price>15.00</Price>
</Book>
</Books>
how to do ?
@yasinkocak It's wrong. Output is
<books>
<book>
<title>book1</title><price>10</price>
<title>book2</title><price>10</price>
</book>
</books>
Say I want a XML like this
Here is the problem, how to feed a xml formatter a correct input array like
You can't have same keys in an array! I really don't know what to do, please help.