fork download
  1. <?php
  2. $str = '1377847,...,1447961';
  3. $str = explode(',',$str);
  4.  
  5. $first = $str[0];
  6. $third = trim($str[2]);
  7. $diff = $third - $first;
  8. $second = $first + $diff;
  9. print_r($second);
Success #stdin #stdout 0s 82880KB
stdin
Standard input is empty
stdout
1447961