fork download
  1. <?php
  2. $a = "look";
  3. $b = "why\ndo\nyou\nlook\nhere";
  4. echo preg_match('/^' . $a . '$/im', $b);
  5. ?>
Success #stdin #stdout 0.02s 13112KB
stdin
Standard input is empty
stdout
1