• exTrim() Enhanced trim() to support array


    /**
    * Enhanced trim() to support array
    * @author Wilson Zeng
    */
    function exTrim($mixed, $removeEmptyString = FALSE){
    if(is_array($mixed)){
    foreach($mixed as $index => &$item){
    $item = exTrim($item);
    if($removeEmptyString && $item === ''){
    array_splice($mixed, $index, 1);
    }
    }
    return $mixed;
    }else{
    return trim($mixed);
    }
    }
  • 相关阅读:
    HDU 2276
    HDU 2254
    HDU 1536 & 1944
    HDU 1538
    HDU 2177
    HDU 2176
    HDU 1209
    HDU 1254
    c++ 11 default delete
    ssh免密登录
  • 原文地址:https://www.cnblogs.com/ppoo24/p/2324498.html
Copyright © 2020-2023  润新知