Changeset 18781


Ignore:
Timestamp:
2010/08/09 17:55:14 (10 years ago)
Author:
miningbrownie
Message:

php5.3に向けてeregをpregに

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/version-2_5-dev/data/class/helper/SC_Helper_CSV.php

    r18780 r18781  
    320320            } 
    321321 
    322             $tmp = preg_replace('[",]', " ", $tmp); 
     322            $tmp = preg_replace('/[",]/', " ", $tmp); 
    323323            $line .= "\"".$tmp."\","; 
    324324        } 
     
    344344            } 
    345345 
    346             $tmp = ereg_replace("[\",]", " ", $tmp); 
     346            $tmp = preg_replace('/[",]/', " ", $tmp); 
    347347            $line .= "\"".$tmp."\","; 
    348348        } 
     
    360360     */ 
    361361    function replaceLineSuffix($line) { 
    362         return mb_ereg_replace(",$", "\r\n", $line); 
     362//        return mb_ereg_replace(",$", "\r\n", $line);   
     363        return preg_replace('/,$/',"\r\n",$line); 
    363364    } 
    364365 
Note: See TracChangeset for help on using the changeset viewer.