我正在尝试从下面的数组中删除重复的值,但我的array_unique似乎不适用于多维数组。
[modemProducts] => Array
(
[1] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Wireless Router - Purchase
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_SA_MDM_PURCHASE_TIER2_LCTL:NONE:MODEM:IN:CON:SA:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:INETJ1744:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $0.00
[n1:PromoMonthlyCharge] => $0.00
[n1:ProductActivationCharge] => $99.99
[n1:ProductActivationChargeDescription] => Purchase Price for Modem
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $14.99
[n1:ShippingAndHandlingDescription] => Shipping and handling fee for the Advanced Modem Router when self install is selected. If tech install is selected, the shipping fee is waived and the tech will bring Modem Router to install location.
[n1:ProductSummaryDescription] => $99.99 to purchase Advanced Modem/Router from CenturyLink.
[n1:ProductDetailDescription] => <li>If purchase or rent modem from CenturyLink, free self-installation kit includes the Advanced Modem/Router, which includes built-in router capabilities you can wirelessly and simultaneously share high-speed Internet access, files and printers. Our Advanced Modem/Router features a built-in router and a superior wireless antenna that maintains a strong signal even at a long distance. The self-installation kit also includes all necessary cables and phone filters. Our technicians are available by phone 24/7 to answer any of your questions. </li>
[n1:ConfirmationPageProductDescription] => Array
(
)
[n1:ProductDisclaimer] => Array
(
)
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
[2] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Wireless Router - Lease
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_SA_MDM_RENTAL_TIER2_LCTL:NONE:MODEM:IN:CON:SA:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:INETJ1744:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $6.99
[n1:PromoMonthlyCharge] => $6.99
[n1:ProductActivationCharge] => $0.00
[n1:ProductActivationChargeDescription] => Activation Fee for Modem
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $14.99
[n1:ShippingAndHandlingDescription] => Shipping and handling fee for the Wireless Router when self install is selected. If tech install is selected, the shipping fee is waived and the tech will bring Modem to install location.
[n1:ProductSummaryDescription] => $6.99/month to lease a Wireless Router
[n1:ProductDetailDescription] => $6.99/month to lease a Wireless Router
[n1:ConfirmationPageProductDescription] => <li>If leasing an Advanced Modem or Wireless Router from CenturyLink, free self-installation kit includes the Advanced Modem or Wireless Router, which includes built-in router capabilities you can wirelessly and simultaneously share high-speed Internet access, files and printers. Our Wireless Router features a built-in router and a superior wireless antenna that maintains a strong signal even at a long distance. The self-installation kit also includes a complete step-by-step CD that walks you through the set-up and configuration of your modem and service as well as all necessary cables and phone filters. Our technicians are available by phone 24/7 to answer any of your questions. </li>
[n1:ProductDisclaimer] => Array
(
)
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
[3] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Customer will provide modem
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_WL_MDM_NONE_LCTL:NONE:MODEM:IN:CON:WL:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:NONE:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $0.00
[n1:PromoMonthlyCharge] => $0.00
[n1:ProductActivationCharge] => $0.00
[n1:ProductActivationChargeDescription] => Array
(
)
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $0.00
[n1:ShippingAndHandlingDescription] => Array
(
)
[n1:ProductSummaryDescription] => I already have a compatible modem
[n1:ProductDetailDescription] => I already have a modem
[n1:ConfirmationPageProductDescription] => Array
(
)
[n1:ProductDisclaimer] => Array
(
)
[n1:Promo1Disclaimer] => <b>Price Lock Promise:</b> Locked-In Offer applies only to the monthly recurring charges for the listed services; excludes all taxes, fees, surcharges, and monthly recurring fees for modem/router and professional installation. Listed bundle rates require CenturyLink Home Phone Unlimited and High-Speed Internet services. An additional monthly fee (including professional installation, if applicable) and a shipping and handling fee will apply to customer's modem or router. Offer requires customer to remain in good standing and terminates if customer changes their account in any manner including any change to the required CenturyLink services (cancelled, upgraded, downgraded), telephone number change, or change of physical location of any installed service (including customer moving from residence of installed services). Other restrictions may apply. Limited time offer. Standard rates apply after promotional or introductory period.
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
[4] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Wireless Router - Purchase
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_WL_MDM_PURCHASE_TIER2_LCTL:NONE:MODEM:IN:CON:WL:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:INETJ1744:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $0.00
[n1:PromoMonthlyCharge] => $0.00
[n1:ProductActivationCharge] => $99.99
[n1:ProductActivationChargeDescription] => Purchase Price for Modem
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $14.99
[n1:ShippingAndHandlingDescription] => Shipping and handling fee for the Advanced Modem Router when self install is selected. If tech install is selected, the shipping fee is waived and the tech will bring Modem Router to install location.
[n1:ProductSummaryDescription] => $99.99 to purchase Advanced Modem/Router from CenturyLink.
[n1:ProductDetailDescription] => <li>If purchase or rent modem from CenturyLink, free self-installation kit includes the Advanced Modem/Router, which includes built-in router capabilities you can wirelessly and simultaneously share high-speed Internet access, files and printers. Our Advanced Modem/Router features a built-in router and a superior wireless antenna that maintains a strong signal even at a long distance. The self-installation kit also includes all necessary cables and phone filters. Our technicians are available by phone 24/7 to answer any of your questions. </li>
[n1:ConfirmationPageProductDescription] => Array
(
)
[n1:ProductDisclaimer] => Array
(
)
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
[5] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Wireless Router - Lease
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_WL_MDM_RENTAL_TIER2_LCTL:NONE:MODEM:IN:CON:WL:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:INETJ1744:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $6.99
[n1:PromoMonthlyCharge] => $6.99
[n1:ProductActivationCharge] => $0.00
[n1:ProductActivationChargeDescription] => Activation Fee for Modem
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $14.99
[n1:ShippingAndHandlingDescription] => Shipping and handling fee for the Wireless Router when self install is selected. If tech install is selected, the shipping fee is waived and the tech will bring Modem to install location.
[n1:ProductSummaryDescription] => $6.99/month to lease a Wireless Router
[n1:ProductDetailDescription] => $6.99/month to lease a Wireless Router
[n1:ConfirmationPageProductDescription] => <li>If leasing an Advanced Modem or Wireless Router from CenturyLink, free self-installation kit includes the Advanced Modem or Wireless Router, which includes built-in router capabilities you can wirelessly and simultaneously share high-speed Internet access, files and printers. Our Wireless Router features a built-in router and a superior wireless antenna that maintains a strong signal even at a long distance. The self-installation kit also includes a complete step-by-step CD that walks you through the set-up and configuration of your modem and service as well as all necessary cables and phone filters. Our technicians are available by phone 24/7 to answer any of your questions. </li>
[n1:ProductDisclaimer] => Array
(
)
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
[6] => Array
(
[n1:ProductWithTermPricingOptions] => Array
(
[n1:ProductName] => Customer will provide modem
[n1:PricingOptions] => Array
(
[n1:Priority] => 600
[n1:PricingOptionCode] => LCTL_SA_MDM_NONE_LCTL:NONE:MODEM:IN:CON:SA:na:na:NONE:NONE:-1:-1:NONE:LCTL:NONE:0:na:NONE:A:PO:na:0:NULL:NULL:NULL
[n1:ProductMonthlyCharge] => $0.00
[n1:PromoMonthlyCharge] => $0.00
[n1:ProductActivationCharge] => $0.00
[n1:ProductActivationChargeDescription] => Array
(
)
[n1:ContractLength] => Array
(
)
[n1:EarlyTerminationFee] => $0.00
[n1:EarlyTerminationDescription] => No early termination fee applies
[n1:ShippingAndHandlingCharge] => $0.00
[n1:ShippingAndHandlingDescription] => Array
(
)
[n1:ProductSummaryDescription] => I already have a compatible modem
[n1:ProductDetailDescription] => I already have a modem
[n1:ConfirmationPageProductDescription] => Array
(
)
[n1:ProductDisclaimer] => Array
(
)
[n1:Promo1Disclaimer] => <b>Price Lock Promise:</b> Locked-In Offer applies only to the monthly recurring charges for the listed services; excludes all taxes, fees, surcharges, and monthly recurring fees for modem/router and professional installation. Listed bundle rates require CenturyLink Home Phone Unlimited and High-Speed Internet services. An additional monthly fee (including professional installation, if applicable) and a shipping and handling fee will apply to customer's modem or router. Offer requires customer to remain in good standing and terminates if customer changes their account in any manner including any change to the required CenturyLink services (cancelled, upgraded, downgraded), telephone number change, or change of physical location of any installed service (including customer moving from residence of installed services). Other restrictions may apply. Limited time offer. Standard rates apply after promotional or introductory period.
)
)
[n1:CompatibleLongDistanceProducts] => Array
(
)
[n1:OptionalServices] => Array
(
)
[n1:RequiredServices] => Array
(
)
[n1:OptionalAccessories] => Array
(
)
[n1:RequiredAccessories] => Array
(
)
)
)
我想删除key ['n1:ProductName']的所有重复项。就像我说我试图使用array_unique但它只返回数组中的一个项目作为结果。 任何帮助表示赞赏。