I have a file that contains certain data in Name|Address|Email|Phone format. Each line contains the data in the said format for each customer. How do I implode or str_replace to get the format below?
Name: <br>
Address: <br>
Email: <br>
Phone: <br>
I have the idea and thought mapped out but I can't seem to be able to implement it.
N:B - Name|Address|Email|Phone is the format not the data in itself. The data would look something like Foo Bar|123, Foo Lane|[email protected]|123-456-7890
str_replace('|', ': <br />', 'Name|Address|Email|Phone')?