Answer the question
In order to leave comments, you need to log in
Why is preg_match case sensitive?
Hello! I can't understand why even with the i modifier set, preg_match distinguishes between case?
<?php
$text ='монитор Монитор';
$val = strtolower('Монит');
echo preg_replace('/('.$val.'.*?)/i', '<b>$1</b>$2', $text);
?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question