Monday, 26 August 2013

PHP: [[::]] anchors

PHP: [[::]] anchors

Why this doesn't work (neither matches nor not), it seems to not parse it.
<?php
echo preg_match("/[[:<:]]name[[:>:]]/","my name is max");
?>
It doesn't output neither 0 nor 1. Why?

No comments:

Post a Comment