Jump to content

Seperate a string


dreamwest

Recommended Posts

Ive stored a string in the database with deliminators "|" now how can i seperate the string and add extra info to it

 

String:

Sam Neill|William H. Macy|Tea Leoni|

 

What i need:


<a href='/Movies/&actor=Sam Neill'>Sam Neill</a>
<a href='/Movies/&actor=William H. Macy'>William H. Macy</a>
<a href='/Movies/&actor=Tea Leoni'>Tea Leoni</a>

Link to comment
https://forums.phpfreaks.com/topic/187380-seperate-a-string/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.