I need a very simple piece of php code that does the following:
INPUT: a string - let's say $a
1. open a .txt file, check if the file already contains a line that equals $a and if so echo on the screen "contains $a"
2. if not, add $a to the end of the file on a new line
Thanks!