S
S
sasho262017-03-22 22:16:17
PHP
sasho26, 2017-03-22 22:16:17

How to sort text from 2 files?

There is a text. A file with text is a text file with correctly spelled words - a dictionary. The program reads the text and checks whether the word is in the dictionary or not. All words that are not by default are considered incorrectly spelled and are displayed on the screen as misspelled words.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GrimJack, 2017-03-22
@GrimJack

In fact, you need regular expressions
Read the text into a variable and run it through preg_match_all
I don’t remember if the pregmatch can accept an array as rules, if not, then run the text into the pregmatch for each word with the for loop

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question