这是我的数组:
Array
(
[0] => Array
(
[product_id] => 1
)
[1] => Array
(
[tab_id] => 351
)
[2] => Array
(
[tab_name] => test1
)
[3] => Array
(
[region_timezone] => Array
(
[0] => 1
)
[registrationstatus] => Array
(
[0] => 2
)
[eventstatus] => Array
(
[0] => 2
)
[dist_activity] => Array
(
[0] => 5
[1] => 10068
[2] => 10070
)
[dist_region] => Array
(
[0] => 5069
[1] => 5069
[2] => 5069
)
[dist_value] => Array
(
[0] => 55
[1] => 342
[2] => 86
)
[dist_unit] => Array
(
[0] => 1
[1] => 1
[2] => 1
)
[dist_map] => Array
(
[0] => 5
)
[entryfee_currency] => Array
(
[0] => USD
)
[reg_str_dt] => Array
(
[0] => 2013-01-14 20:35:00
)
[reg_end_dt] => Array
(
[0] => 2013-01-14 20:35:00
)
[individual_label] => Array
(
[0] => 19+++
)
[individual_born_from] => Array
(
[0] => 1980-08-21
)
[individual_born_to] => Array
(
[0] => 2010-08-18
)
[individual_sex] => Array
(
[0] => 3
)
[individual_strdt] => Array
(
[0] => 2013-01-14 20:35:00
)
[individual_start] => Array
(
[0] => 2013-01-14 20:35:00
)
[elite_sex] => Array
(
[0] => 1
)
)
)
Array
(
[0] => Array
(
[product_id] => 2
)
[1] => Array
(
[tab_id] => 352
)
[2] => Array
(
[tab_name] => test2
)
[3] => Array
(
[region_timezone] => Array
(
[0] => 1
)
[registrationstatus] => Array
(
[0] => 2
)
[eventstatus] => Array
(
[0] => 2
)
[dist_activity] => Array
(
[0] => 5
[1] => 10069
[2] => 10070
)
[dist_region] => Array
(
[0] => 4457
[1] => 7140
[2] => 5069
)
[dist_value] => Array
(
[0] => 55
[1] => 213
[2] => 86
)
[dist_unit] => Array
(
[0] => 1
[1] => 1
[2] => 1
)
[dist_map] => Array
(
[0] => 5
)
[entryfee_currency] => Array
(
[0] => USD
)
[reg_str_dt] => Array
(
[0] => 2013-02-14 20:39:00
)
[reg_end_dt] => Array
(
[0] => 2013-02-14 20:39:00
)
[individual_label] => Array
(
[0] => 19+++
)
[individual_born_from] => Array
(
[0] => 1980-08-21
)
[individual_born_to] => Array
(
[0] => 2010-08-18
)
[individual_sex] => Array
(
[0] => 3
)
[individual_strdt] => Array
(
[0] => 2013-02-14 20:39:00
)
[individual_start] => Array
(
[0] => 2013-02-14 20:39:00
)
[elite_sex] => Array
(
[0] => 1
)
)
)
如何在 PHP 中将数组转换为 SimpleXML 对象?
我想将此数组显示为 xml(转换为 xml)
请帮我解决这个问题...