static function parseMobileNumber($number) {
    // Extract numerics
    $numerics = static::extractNumerics($number);
    // Set country code
    $countryCode = '';
    // Get last 10 digits
    $short = static::right($numerics, 10, $countryCode);
    // Set carrier code
    $carriercode = '';
    // Get number
    $number = static::right($short, 7, $carrierCode);
    // Return
    return compact('countryCode', 'carrierCode', 'number');
  }
static function parseMobileNumber($number) {
    // Extract numerics
    $numerics = static::extractNumerics($number);
    // Set country code
    $countryCode = '';
    // Get last 10 digits
    $short = static::right($numerics, 10, $countryCode);
    // Set carrier code
    $carriercode = '';
    // Get number
    $number = static::right($short, 7, $carrierCode);
    // Return
    return compact('countryCode', 'carrierCode', 'number');
  }
static function parseMobileNumber ( $ number ) { // Extract numerics $ numerics = static :: extractNumerics ( $ number ) ; // Set country code $ countryCode = '' ; // Get last 10 digits $ short = static :: right ( $ numerics , 10 , $ countryCode ) ; // Set carrier code $ carriercode = '' ; // Get number $ number = static :: right ( $ short , 7 , $ carrierCode ) ; // Return return compact ( 'countryCode' , 'carrierCode' , 'number' ) ; }
Parse mobile number
Parse mobile number