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/helper/SC_Helper_Mobile.php

    r21927 r21935  
    9696    function lfMobileConvertInputValue(&$value) { 
    9797        if (is_array($value)) { 
    98             foreach (array_keys($value) as $key) { 
     98            foreach ($value as $key => $val) { 
    9999                $this->lfMobileConvertInputValue($value[$key]); 
    100100            } 
Note: See TracChangeset for help on using the changeset viewer.