I need help doing the following thing;
Say i have a file called users.txt and in this file is the following information
Name: John Smith
Address: 10 King Street
Phone: 01612763999
Name: Joe King
Address: 22 Long Street
Phone: 01612763988
I then want another script which reads this file and extracts all the names and "echo"s them.
Does anyone know how i would be able to do this using PHP.
Thanks
Say i have a file called users.txt and in this file is the following information
Name: John Smith
Address: 10 King Street
Phone: 01612763999
Name: Joe King
Address: 22 Long Street
Phone: 01612763988
I then want another script which reads this file and extracts all the names and "echo"s them.
Does anyone know how i would be able to do this using PHP.
Thanks