<?php if (preg_match_all('/[[:<:]]home[[:>:]]/', 'homeless and home', $m)){ print_r($m[0]); }
Standard input is empty
Array ( [0] => home )
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!