I'm working on a replying system similar to twitters.
In a string there is a piece of text where the id is variable ex.: 14&
, 138&
depending to who you're replying.
How can I find the 14&
in a string and replace it with <u>14&</u>
?
This is how it looks:
14& this is a reply to the comment with id 14
This is how it should look like:
<u>14&</u> this is a reply to the comment with id 14
How can I do this in PHP? Thanks in advance!