Tianpu
V2EX  ›  PHP

mb_trim

  •  
  •   Tianpu · Jul 30, 2015 · 2981 views
    This topic created in 3958 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   ·   5588 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 5414617a · 35ms · UTC 07:46 · PVG 15:46 · LAX 00:46 · JFK 03:46
    ♥ Do have faith in what you're doing.