Guest User

Untitled

a guest
Nov 21st, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $code = $_POST['code'];
  2. $cant = intval($_POST['cant']);
  3. $nums = preg_split('/[^0-9]+/i', $code);
  4. $strings = preg_split('/[^a-zA-Z]+/i', $code);
  5. $intN = $nums[1];
  6.  
  7. for($i = 0; $i < $cant; $i++){
  8. echo json_encode($intN++);
  9. }
  10.  
  11. echo json_encode(str_pad($intN++, 10, "0", STR_PAD_LEFT));
Add Comment
Please, Sign In to add comment