Input text FILE: The file contains a number of ROWS Each ROW contains a number of text ELEMENTS separated by TABS Each ELEMENT can contain any number of characters including spaces, or may be empty I want a simple PHP script to take the contents of the text FILE. For any rows in which the first ELEMENT if identical with the first ELEMENT of other ROWS, the entire ROW should be treated as a DUPLICATE Remove duplicate rows (i.e. keep the first one and remove all others) Note, only the first ELEMENT has to be the same for the entire ROW to be considered a DUPLICATE Should be case insensitive Example input: red five 0ne two six green RED four 0ne two six green red five 0ne two SIX green red five six two six green red five one two six green red five 0ne two six orange red five 0ne two six yellow red five 0ne two six blue black five 0ne two six green white five nine two six green gray eleven 0ne two six gray silver five 0ne two ten gold Output: red five 0ne two six green black five 0ne two six green white five nine two six green gray eleven 0ne two six silver five 0ne two ten gold
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows? (depending on the nature? of the deliverables):
a)? For web sites or? other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software? installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
unix apache web server PHP4.4.6