O
O
Olga2016-12-28 21:27:10
PHP
Olga, 2016-12-28 21:27:10

Why doesn't the i modifier work in preg_match?

Hello! Please, give me an idea why the i modifier in preg_match might not work? I need the recognizable phrase to be case insensitive, but the i modifier doesn't work :(
preg_match('/\btext\b/u', $message_text) another?
Thanks in advance!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dmitry, 2016-12-28
@Imperial777

Good evening.
Finds only one occurrence? Use preg_match_all.
Use the third parameter for preg_match_***, it gets an array with results.

M
Melkij, 2017-06-02
@artem78

Errcode 28 = No disk space . (or inodes)
I didn't really understand why you needed concat.

SELECT
  COUNT(DISTINCT `offer`) AS `cnt`,
  `webmaster`, `partner`
FROM `orders`
GROUP BY `webmaster`, `partner`
HAVING `cnt` > 1

N
Nurlan, 2017-06-01
@daager

If I'm not mistaken something like this:

SELECT `partner`, COUNT(1) as `count` FROM `table` GROUP BY `parthner` HAVING count>1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question