We have a php script that read an xml formatted .txt file and inputs the data into our Content Management System. I need help editing the file to replace specific numbers with specific text (i.e: 01 - Hospital, 02 - Clinics, etc) before it is input into our CMS. We should be able to use if/then statements and str_replace to complete this. Though I am open to another suggestion if there is a better solution available.
The script is attached below. I will need to provider you with the mapping file.