I cant make a working regexp in php. I'm using i
flag at regexp pattern, but it doesnt make a effect on result of my script:
$page = "Test";
$page1 = "test";
var_dump(preg_match("#^test#i", $page));
// int(0)
var_dump(preg_match("#^test#i", $page1));
// int(1)
I really cant realize, where i made a mistake, please help.