我正在使用eBatNS开发人员工具包中的eBay GetItemTransactions调用。我在屏幕上输出 - 但我怎么能把它轻松地放到数据库中?
格式为:
---------------------
Object Dump:
GetItemTransactionsResponseType Object
(
[PaginationResult:protected] => PaginationResultType Object
(
[TotalNumberOfPages:protected] => 1
[TotalNumberOfEntries:protected] => 9
)
[TransactionsPerPage:protected] => 100
[PageNumber:protected] => 1
[ReturnedTransactionCountActual:protected] => 9
[Item:protected] => ItemType Object
(
[BuyerProtection:protected] => ItemEligible
[Currency:protected] => EUR
[ItemID:protected] => 231438090000
[ListingDetails:protected] => ListingDetailsType Object
......依旧......
某些标签是嵌套的,例如:[Street1:protected]发生在:
[RegistrationAddress:protected] //(some lines deleted)
[Street1:protected]
和
[ShippingAddress:protected] //(some lines deleted)
[Street1:protected]
我隐约知道preg_match_all是如何工作的,以及如何做到这一点。但我的问题是,为此目的是否有简单的方法或特殊功能?