I want to check existence of the word 'açilek' in the context. Running this:
$word = 'açilek';
$article='elma and açilek word';
$mat=preg_match('/\b'. $word .'\b/', $article);
var_dump($mat);
Succeeds. This is expected. However, to match the word 'çilek', the code returns False which is not expected:
$word = 'çilek';
$article='elma and çilek word';
$mat=preg_match('/\b'. $word .'\b/', $article);
var_dump($mat); //returns false !!!!
Additionally, it will match this word if it is a part of a word, also unexpected:
$word = 'çilek';
$article='elma and açilek word';
$mat=preg_match('/\b'. $word .'\b/', $article);
var_dump($mat); //returns true !!!!
Why am I seeing this behavior?