src/Payline/PaylineSDK.php
protected function hideChars($inString, $n1, $n2)
    {
        $inStringLength = strlen($inString);
        if ($inStringLength < ($n1 + $n2)) {
            return $inString;
        }
        $outString = substr($inString, 0, $n1);
        $outString .= substr("********************", 0, $inStringLength - ($n1 + $n2));
        $outString .= substr($inString, - ($n2));
        return $outString;
    }
protected function hideChars($inString, $n1, $n2)
    {
        $inStringLength = strlen($inString);
        if ($inStringLength < ($n1 + $n2)) {
            return $inString;
        }
        $outString = substr($inString, 0, $n1);
        $outString .= substr("********************", 0, $inStringLength - ($n1 + $n2));
        $outString .= substr($inString, - ($n2));
        return $outString;
    }
protected function hideChars ( $ inString , $ n1 , $ n2 ) { $ inStringLength = strlen ( $ inString ) ; if ( $ inStringLength < ( $ n1 + $ n2 ) ) { return $ inString ; } $ outString = substr ( $ inString , 0 , $ n1 ) ; $ outString .= substr ( "********************" , 0 , $ inStringLength - ( $ n1 + $ n2 ) ) ; $ outString .= substr ( $ inString , - ( $ n2 ) ) ; return $ outString ; }
Hide characters in a string

@param String $inString
the string to hide
@param int $n1
number of characters shown at the begining of the string
@param int $n2
number of characters shown at end begining of the string
Hide characters in a string