0
我对PHP World非常陌生,并且从最近三天就陷入了这个问题。基于密钥将多维数组拆分为两个阵列
Array
(
[0] => stdClass Object
(
[sim_id] => 15
[Tarrif_code] => D34
[rental] => USD 345
[service_provider] => Vodafone
[incoming_calls] => 3.2 /sec
[local_outgoing] => 3.2 /sec
[international_call] => 3.2 /sec
[company_name] => Airtel
[local_text] =>
[international_text] =>
[data] => 2G
[sim_type_id] => 1
[offer_short_descrption] =>
[validity] =>
[dialing_instruction] =>
[recharge_instruction] =>
[usage_warning] =>
[country_id] => 1
[type] => Prepaid
)
)
,其结果应该是
Array
(
[0] => stdClass Object
(
[sim_id] => 15
[Tarrif_code] => D34
[company_name] => Airtel
[rental] => USD 345
[service_provider] => Vodafone
[country_id] => 1
[type] => Prepaid
[1] => stdClass Object
(
[international_call] => 3.2 /sec
[incoming_calls] => 3.2 /sec
[local_outgoing] => 3.2 /sec)
[local_text] =>
[international_text] =>
[data] => 2G
[sim_type_id] => 1
[offer_short_descrption] =>
[validity] =>
[dialing_instruction] =>
[recharge_instruction] =>
[usage_warning] =>
)
)
什么是这背后的模式? +向我们展示您当前的代码/尝试。 – Rizier123