function get($countryCode = false, $separator = '')
    {
        if ($countryCode == false) {
            $formattedNumber = '0' . $this->msisdn;

            if ( ! empty($separator)) {
                $formattedNumber = substr_replace($formattedNumber, $separator, 4, 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 8, 0);
            }

            return $formattedNumber;
        } else {
            $formattedNumber = $this->countryPrefix . $this->msisdn;

            if ( ! empty($separator)) {
                $formattedNumber = substr_replace($formattedNumber, $separator, strlen($this->countryPrefix), 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 7, 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 11, 0);
            }

            return $formattedNumber;
        }
    }
function get($countryCode = false, $separator = '')
    {
        if ($countryCode == false) {
            $formattedNumber = '0' . $this->msisdn;

            if ( ! empty($separator)) {
                $formattedNumber = substr_replace($formattedNumber, $separator, 4, 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 8, 0);
            }

            return $formattedNumber;
        } else {
            $formattedNumber = $this->countryPrefix . $this->msisdn;

            if ( ! empty($separator)) {
                $formattedNumber = substr_replace($formattedNumber, $separator, strlen($this->countryPrefix), 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 7, 0);
                $formattedNumber = substr_replace($formattedNumber, $separator, 11, 0);
            }

            return $formattedNumber;
        }
    }
function get ( $ countryCode = false , $ separator = '' ) { if ( $ countryCode == false ) { $ formattedNumber = '0' . $ this -> msisdn ; if ( ! empty ( $ separator ) ) { $ formattedNumber = substr_replace ( $ formattedNumber , $ separator , 4 , 0 ) ; $ formattedNumber = substr_replace ( $ formattedNumber , $ separator , 8 , 0 ) ; } return $ formattedNumber ; } else { $ formattedNumber = $ this -> countryPrefix . $ this -> msisdn ; if ( ! empty ( $ separator ) ) { $ formattedNumber = substr_replace ( $ formattedNumber , $ separator , strlen ( $ this -> countryPrefix ) , 0 ) ; $ formattedNumber = substr_replace ( $ formattedNumber , $ separator , 7 , 0 ) ; $ formattedNumber = substr_replace ( $ formattedNumber , $ separator , 11 , 0 ) ; } return $ formattedNumber ; } }
Returns a formatted mobile number

@param bool|false $countryCode
@param string $separator
@return mixed|string
Returns a formatted mobile number