fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $result ="OK|SDSDD";
  5. if (!preg_match('(OK\|)', $result)) {
  6. echo 'error';
  7. }else{
  8. echo "working";
  9. }
Success #stdin #stdout 0.02s 26424KB
stdin
Standard input is empty
stdout
working