I have a string that comes from a database which I read with fetch_array()
. Example:
$row=$query->fetch_array();
What I would like is to understand words. For example, if in that string there is the word "CARRO", put that word in bold, that is, enclose said word in an HTML tag either <b>
or <a>
. Does anyone know how I could do what I need?