Answer the question
In order to leave comments, you need to log in
How to make the simplest version of the recognition of the entered text?
Good afternoon. Tell me please. How to make the simplest version of the recognition of the entered text?
That is, the text is entered in the input field, for example the $q variable is in the php script. Suppose a person made a mistake and enters Pryuvet or Pka, and the script recognizes that it is Hello and Bye)
How can this be done with a database of predefined words using the simplest example?
thanks in advance
Answer the question
In order to leave comments, you need to log in
str_replace(['прювет', 'пка', 'прив'], 'привет', $text);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question