phoneNumber

phoneNumber() :string

🇯🇵 🇺🇸
電話番号を生成します。

パラメータ

なし

>>> Faker\Factory::create('ja_JP')->phoneNumber()
=> "0127-76-0287"
>>> Faker\Factory::create()->phoneNumber()
=> "1-379-405-3063"

注意

注意:

日本語ロケールでは下記のフォーマットのいずれかになります。

  • 080-####-####
  • 090-####-####
  • 0#-####-####
  • 0####-#-####
  • 0###-##-####
  • 0##-###-####
  • 0##0-###-###
最終更新日時: