private static function extractAuthUserPass($encodedString)
    {
        if (0 >= strlen($encodedString)) {
            return false;
        }
        $decodedString = base64_decode($encodedString, true);
        if (false === $decodedString) {
            return false;
        }

        $firstColonPos = strpos($decodedString, ':');
        if (false === $firstColonPos) {
            return false;
        }

        return array(
            'authUser' => substr($decodedString, 0, $firstColonPos),
            'authPass' => substr($decodedString, $firstColonPos + 1),
        );
    }
private static function extractAuthUserPass($encodedString)
    {
        if (0 >= strlen($encodedString)) {
            return false;
        }
        $decodedString = base64_decode($encodedString, true);
        if (false === $decodedString) {
            return false;
        }

        $firstColonPos = strpos($decodedString, ':');
        if (false === $firstColonPos) {
            return false;
        }

        return array(
            'authUser' => substr($decodedString, 0, $firstColonPos),
            'authPass' => substr($decodedString, $firstColonPos + 1),
        );
    }
private static function extractAuthUserPass ( $ encodedString ) { if ( 0 >= strlen ( $ encodedString ) ) { return false ; } $ decodedString = base64_decode ( $ encodedString , true ) ; if ( false === $ decodedString ) { return false ; } $ firstColonPos = strpos ( $ decodedString , ':' ) ; if ( false === $ firstColonPos ) { return false ; } return array ( 'authUser' => substr ( $ decodedString , 0 , $ firstColonPos ) , 'authPass' => substr ( $ decodedString , $ firstColonPos + 1 ) , ) ; }
Extract the authUser and authPass from the BASE64 encoded string.

@param string $encodedString the BASE64 encoded colon separated
authUser and authPass

@return mixed array containing authUser and authPass or false if
the decoding fails
Extract the authUser and authPass from the BASE64 encoded string .