mixed str_replace ( mixed search, mixed replace, mixed subject [, int &count] ) 用这个函数替换

解决方案 »

  1.   

    string strtr ( string $str , string $from , string $to )
    string strtr ( string $str , array $replace_pairs )str 
    The string being translated. from 
    The string being translated to to . to 
    The string replacing from . replace_pairs 
    The replace_pairs parameter may be used as a substitute for to and from in which case it's an array in the form array('from' => 'to', ...).