forked from studiofrenetic/laravel-formatter
-
Notifications
You must be signed in to change notification settings - Fork 93
Open
Description
Say I want a XML like this
<Books>
<Book>
<Title>Book1</Title>
<Price>10.00</Price>
</Book>
<Book>
<Title>Book2</Title>
<Price>15.00</Price>
</Book>
</Books>
Here is the problem, how to feed a xml formatter a correct input array like
[
'books' => [
'book' => [
'title' => 'book1',
'price' => 10.00,
],
'book' => [
'title' => 'book2',
'price' => 15.00,
]
]
You can't have same keys in an array! I really don't know what to do, please help.
Metadata
Metadata
Assignees
Labels
No labels