fork(1) download
  1. <?php
  2.  
  3. if (preg_match_all('/[[:<:]]home[[:>:]]/', 'homeless and home', $m))
  4. {
  5. print_r($m[0]);
  6. }
  7.  
Success #stdin #stdout 0.01s 82944KB
stdin
Standard input is empty
stdout
Array
(
    [0] => home
)