1
Colleagues,
I’m doing an internal search on an existing site, but in one of the results, it’s bringing it up as follows:
<a href=".....">página 1</a> <a href=".....">página 2</a> <a
href=".....">página 3</a>
How would I make that after the word < /to> if there was a line break with PHP?
Show us what you have tried and what errors you are facing. A tip is using the explode function();
– jlHertel
após a palavra ""
should there be a word between the quotation marks? Or do you want to give a line break at an empty point? There are several ways, it depends a little on how comes the result etc...– Neuber Oliveira
I didn’t notice... adjusted now. It would be after the word </ a>
– user24136
I’ve tried the explode(). but it always returns me the first line. Remember that not all results bring this way...
– user24136
break at all
</a>
or only in some specific– Neuber Oliveira
Break in all, because in this specific result , is bringing one next to the other.
– user24136
uses
str_replace("</a>", "</a><br>", $tua_variavel);
– Thiago Santos
It worked Thiago. Thank you!
– user24136