Paste Search Dynamic
Recent pastes
int substr data
  1. <?php
  2.  
  3. // your code goes here
  4. $data = '7896013544517666803666803666803666803';
  5.  
  6. $ean    = (int) substr($data, 0, 13);
  7. $dic    = (int) substr($data, -13);
  8.  
  9.  
  10. print_r([$ean, $dic]);
  11.  
  12. ?>
Parsed in 0.004 seconds