fork download
  1. <?php
  2.  
  3. $regexp = '/[\0-]+/';
  4. $str = preg_replace("/\D/", '-', $_GET[num]);
  5. echo $str;
  6.  
  7. $nig= preg_split ($regexp, $str);
  8. $nig1= $nig[1];
  9. $nig2= $nig[2];
  10. var_dump($nig);
  11. echo $nig1;
  12. echo $nig2;
Success #stdin #stdout #stderr 0.01s 82944KB
stdin
Standard input is empty
stdout
array(1) {
  [0]=>
  string(0) ""
}
stderr
PHP Notice:  Use of undefined constant num - assumed 'num' in /home/fEVFiY/prog.php on line 4
PHP Notice:  Undefined index: num in /home/fEVFiY/prog.php on line 4
PHP Notice:  Undefined offset: 1 in /home/fEVFiY/prog.php on line 8
PHP Notice:  Undefined offset: 2 in /home/fEVFiY/prog.php on line 9