fork download
  1. <?php
  2. $string ='ZAMM Et a est hac pid pid sit amet, lacus nisi
  3. ZPPP scelerisque sagittis montes, porttitor ut arcu
  4. ZAMM tincidunt cursus eu amet nunc
  5. ZAMM c ac nunc, et pid pellentesque amet,
  6. ZSSS m urna scelerisque in vut';
  7.  
  8. if(preg_match_all("/ZAMM.*/", $string, $matches)) {
  9. foreach($matches[0] as $match){
  10. echo $match;
  11. echo "\n";
  12. }
  13. }
Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
ZAMM Et a est hac pid pid sit amet, lacus nisi
ZAMM tincidunt cursus eu amet nunc
ZAMM c ac nunc, et pid pellentesque amet,