<?php echo rand(1000000000, 9999999999); ?>
<?php for ($i=0;$i<10;$i++) { $pass{$i} = rand(0,9); } $p = implode($pass); echo $p; ?>