Tianpu
V2EX  ›  PHP

mb_trim

  •  
  •   Tianpu · Jul 30, 2015 · 3114 views
    This topic created in 4022 days ago, the information mentioned may be changed or developed.
    function mb_trim($str){
    $r = '';
    if(!empty($str)){
    $r = mb_ereg_replace('^[[:space:]]*([\s\S]*?)[[:space:]]*$','\1',$str);
    }
    return $r;
    }
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5289 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 03:56 · PVG 11:56 · LAX 20:56 · JFK 23:56
    ♥ Do have faith in what you're doing.