我有一个数组,我需要改变数组的格式。产品数组不包含客户信息。
P粉141455512
P粉141455512 2023-07-27 18:37:40
[PHP讨论组]


Array
(
    [0] => Array
        (
            [customer_name] => Gaurav
            [company] => ABC Company
            [gstin] => GSTIN Number
            [address] => Seller Address
            [mobile_no] => 9527136311
            [email_id] => seller@gmail.com
            [invoice_date] => 26.07.2023
            [expiry_date] => 27.07.2023
            [amount] => 400
            [vendor_name] => Manoj
            [vendor_email_id] => grv1gujar@gmail.com
            [vendor_mobile_no] => 8169588057
            [vendor_gstin] => GSTIN Number
            [vendor_address] => Vendor Address
        )

    [1] => Array
        (
            [name] => Product1
            [description] => Product1
            [price] => 50
            [quantity] => 4
            [tax_percentage] => 12
        )

    [2] => Array
        (
            [name] => Product2
            [description] => Product2
            [price] => 25
            [quantity] => 4
            [tax_percentage] => 5
        )

    [3] => Array
        (
            [name] => Product3
            [description] => Product3
            [price] => 10
            [quantity] => 10
            [tax_percentage] => 8
        )

    [4] => Array
        (
            [customer_name] => Swapnil
            [company] => XYZ Company
            [gstin] => GSTIN Number
            [address] => Seller Address
            [mobile_no] => 9527136311
            [email_id] => seller@gmail.com
            [invoice_date] => 26.07.2023
            [expiry_date] => 27.07.2023
            [amount] => 200
            [vendor_name] => Anoop
            [vendor_email_id] => grv1gujar@gmail.com
            [vendor_mobile_no] => 8169588057
            [vendor_gstin] => GSTIN Number
            [vendor_address] => Vendor Address
        )

    [5] => Array
        (
            [name] => ABC
            [description] => ABC
            [price] => 100
            [quantity] => 2
            [tax_percentage] => 12
        )

    [6] => Array
        (
            [customer_name] => Uday
            [company] => PQR Company
            [gstin] => GSTIN Number
            [address] => Seller Address
            [mobile_no] => 9527136311
            [email_id] => seller@gmail.com
            [invoice_date] => 26.07.2023
            [expiry_date] => 27.07.2023
            [amount] => 250
            [vendor_name] => Virat
            [vendor_email_id] => grv1gujar@gmail.com
            [vendor_mobile_no] => 8169588057
            [vendor_gstin] => GSTIN Number
            [vendor_address] => Vendor Address
        )

    [7] => Array
        (
            [name] => Pen
            [description] => Pen
            [price] => 75
            [quantity] => 2
            [tax_percentage] => 12
        )

    [8] => Array
        (
            [name] => Pencil
            [description] => Pencil
            [price] => 20
            [quantity] => 5
            [tax_percentage] => 8
        )
)


P粉141455512
P粉141455512

全部回复(1)
P粉562845941

你能解释一下你想要做什么吗?请不要随意粘贴一个var_dump。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号