src/FreeFW/Tools/PBXString.php
public static function hidePart($p_string, $p_replace = 'X', $p_left = 4, $p_right = 4)
    {
        $len = strlen($p_string);
        $str = substr($p_string, 0, $p_left) .
            str_pad('', $len - $p_left - $p_right, $p_replace) .
            substr($p_string, $len - $p_right);
        return $str;
    }
public static function hidePart($p_string, $p_replace = 'X', $p_left = 4, $p_right = 4)
    {
        $len = strlen($p_string);
        $str = substr($p_string, 0, $p_left) .
            str_pad('', $len - $p_left - $p_right, $p_replace) .
            substr($p_string, $len - $p_right);
        return $str;
    }
public static function hidePart ( $ p_string , $ p_replace = 'X' , $ p_left = 4 , $ p_right = 4 ) { $ len = strlen ( $ p_string ) ; $ str = substr ( $ p_string , 0 , $ p_left ) . str_pad ( '' , $ len - $ p_left - $ p_right , $ p_replace ) . substr ( $ p_string , $ len - $ p_right ) ; return $ str ; }
Hide part of string with a caracter

@param string $p_string
@param string $p_replace
@param number $p_left
@param number $p_right

@return string
Hide part of string with a caracter