Tianpu
V2EX  ›  PHP

mb_trim

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