Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- public function randPhone()
- {
- $areaCode = array();
- $exchange = array();
- $subscriber = array();
- for ($i = 0; $i < 3; $i++) {
- $areaCode []= rand(1, 9);
- $exchange []= rand(1, 9);
- }
- for ($i = 0; $i < 4; $i++) {
- $subscriber []= rand(0, 9);
- }
- return implode('', $areaCode) .
- implode('', $exchange) .
- implode('', $subscriber);
- }
- ?>
Add Comment
Please, Sign In to add comment