Answer by Chris Petersn for i have to compare a word with a list of word so thats the word already exicts in tht list or not which algorithm should i use

In PHP:

in_array ( $animal , $animals );

In SQL:

SELECT 1 FROM animals WHERE name='whateveranimal';

Tuesday 22nd August 2017 4:56 am

Back to User Chris Petersn - Stack Overflow blog