Tianpu
V2EX  ›  PHP

mb_trim

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