php foreach循环判断在改变值。坐等大神解决
PHP中文网
PHP中文网 2017-04-10 15:38:32
0
1
547

    foreach ($gjtc as $key=>$val)
    {
        foreach ($gjtc2 as $key2=>$vals2)
        {
            if($key['order_id']==$key2['order_id'])
            {

            }
        }
    }

写到这里不会写了,我要把2数组sp_tc相加根据1组的ID

PHP中文网
PHP中文网

认证0级讲师

reply all(1)
巴扎黑

直接用sql语句操作就好了,为什么还要php写循环去操作呢?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!