Check text string

-3

I would like to know how I can do to read a string of mysqli text and if there is a word with "#" I can give it styles or put it in a hyperlink

    
asked by alfredo rios 01.12.2018 в 18:16
source

1 answer

0

I can not understand exactly what you are looking for, if you could give a better explanation of a lot of help, however if I can understand what you want to do, you could read the results of your SQL query as you usually do in PHP, and go through each one of the registers could apply a simple regular expression that allows you to determine if the sign # exists, and in that case make a replace of it by what you want, in this case a url.

Regards,

Nickolas

    
answered by 01.12.2018 в 18:23