<?php namespace Faker\Provider\zh_CN; class PhoneNumber extends \Faker\Provider\PhoneNumber { protected static $operators = array( 134, 135, 136, 137, 138, 139, 147, 150, 151, 152, 157, 158, 159, 178, 182, 183, 184, 187, 188, // china mobile 130, 131, 132, 145, 155, 156, 175, 176, 185, 186, // china unicom 133, 149, 153, 177, 180, 181, 189, // chinatelecom 170, 171, // virtual operators ); protected static $formats = array('########'); public function phoneNumber() { $operators = static::randomElement(static::$operators); return $operators . static::numerify(static::randomElement(static::$formats)); } }