Ignore:
Timestamp:
2012/06/21 15:02:41 (12 years ago)
Author:
pineray
Message:

#1859
foreach でキーしか使わない場合に array_keys で配列を作ってから渡す方法だと、
メモリを倍ほど消費することがわかったので、見苦しいけれど不要なバリューを生成する方向に.
F*in' PHP!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_12-dev/data/class/pages/admin/order/LC_Page_Admin_Order_Edit.php

    r21870 r21935  
    784784        $exists = false; 
    785785        $arrExistsProductClassIds = $objFormParam->getValue('product_class_id'); 
    786         foreach (array_keys($arrExistsProductClassIds) as $key) { 
     786        foreach ($arrExistsProductClassIds as $key => $value) { 
    787787            $exists_product_class_id = $arrExistsProductClassIds[$key]; 
    788788            if ($exists_product_class_id == $product_class_id) { 
Note: See TracChangeset for help on using the changeset viewer.