Tianpu
V2EX  ›  PHP

mb_trim

  •  
  •   Tianpu · Jul 30, 2015 · 2997 views
    This topic created in 3971 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   ·   871 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 20:37 · PVG 04:37 · LAX 13:37 · JFK 16:37
    ♥ Do have faith in what you're doing.