fork download
  1. <?php
  2.  
  3. $string= 'blah blah result.php?whatiwanttoecho';
  4. preg_match_all('/result\.php\?([.\w\W]*?)[\s\n]/ui', $string, $matches);
  5. foreach(end($matches) as $key=> $value){
  6. print '<pre>'.print_r($value, 1).'</pre>';
  7. }
  8.  
  9. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
Standard output is empty