Changeset 17998


Ignore:
Timestamp:
2009/05/02 19:13:55 (13 years ago)
Author:
Seasoft
Message:

マルチバイト文字列対応

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/comu-ver2/data/class/util/SC_Utils.php

    r17967 r17998  
    624624 
    625625    function sfTrim($str) { 
    626         $ret = ereg_replace("^[  \n\r]*", "", $str); 
    627         $ret = ereg_replace("[  \n\r]*$", "", $ret); 
     626        $ret = mb_ereg_replace("^[  \n\r]*", "", $str); 
     627        $ret = mb_ereg_replace("[  \n\r]*$", "", $ret); 
    628628        return $ret; 
    629629    } 
Note: See TracChangeset for help on using the changeset viewer.