PHP \B And \B, Equate To “On Word Boundary” And “Not On Word Boundary,” Respectively. – String Function

<?
    $string = "this is a test!";    if (preg_match("/oo\b/i", $string)) {
    }    preg_match("/oo\B/i", $string);    preg_match("/no\b/", "he said 'no!'");    preg_match("/royalty\b/", "royalty-free photograph");
?>

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.