I
I
Ivan2015-11-15 12:46:12
PHP
Ivan, 2015-11-15 12:46:12

How to search for similar words in PHP?

For example, the user enters a word with an error in the input field - for example, "story" - and we must use php to find the corresponding entry without an error - that is, "story"

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Askar Fuzaylov, 2015-11-15
@iwqn

This will help you. habrahabr.ru/post/115394

A
Anton Natarov, 2015-11-15
@HanDroid

I don't know about php, but you can try it with Sphinx, a search engine module.
If the text is stored in the database, then through the query LIKE '%'.$someText.'%' or ILIKE depending on your database. Queries of this type look for matches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question