I have a numbers.txt file like (inside of the numbers.txt) file: NEED2921 SUDA9281 MUHEA921 LEHJA222 JJJKEL22 SUDA9281 I need a function that check the each line of numbers.txt file and show me same lines in the text. Example as the datas below function should write: SUDA9281 Thank you.
hello thank you for your answer. i'm not familiar with PHP. So this url will make no sense in my mind.
So you want to display duplicates? That is easy to implement. $lines = file('numbers.txt'); $count = count($lines); for ($i = 0; $i < $count; $i++) { $temp = $lines[$i]; unset($lines[$i]); if (in_array($temp, $lines)) { echo $temp, '<br>'; } } PHP: Looks pretty straightforward, if you need explanation I will gladly do it.
You are so kind. as i am not familiar with PHP I don't need any explanations but to add the archive better to add explanations for further questions regarding to this. thank you.