The server responds in a similar format, put it in a variable:

$string = 'Данные в системе отсутствуют, потому что не введены'; 

You need to work like this:

 если $string содержит 'отсутствуют' И 'не введены' { //выполнить } 

How to solve?

    2 answers 2

    strpos will save you two times.

      Already decided

       if(stristr($exit, 'отсутствуют') !== FALSE && stristr($exit, 'не введены') !== FALSE) { //выполняем } 
      • one
        It is googling faster than the question is being made ... - Vladimir Martyanov
      • @ Vladimir Martianov yes, the question was about the regulars, and it turned into this. - Jean-Claude