Skip to content
Advertisement

How to replace a single tag with multiple values in PHP?

I am sending a job openings email to my website users. I have the following sentences.

JavaScript

If there is only one job, I can use str_replace("PHP Developer", "[JOBLIST]", $message)

But I have list of job openings say,

  • PHP Developer
  • Data Scientist
  • Data Entry

I would like to replace the above tag [JOBLIST] with the above job openings probably with a href link to the job details.

Advertisement

Answer

JavaScript
User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement