fork(2) download
  1. <?php
  2. print_r(range('a', 'c'));
  3.  
  4.  
  5. $quantidade = 10;
  6. $alternativas = range('a', chr(ord('a') + $quantidade));
  7. print_r($alternativas);
  8.  
  9.  
Success #stdin #stdout 0.01s 82560KB
stdin
Standard input is empty
stdout
Array
(
    [0] => a
    [1] => b
    [2] => c
)
Array
(
    [0] => a
    [1] => b
    [2] => c
    [3] => d
    [4] => e
    [5] => f
    [6] => g
    [7] => h
    [8] => i
    [9] => j
    [10] => k
)