I got a variable that loos like this:
<b>Hight: </b></span><span>1.78 </span><span><b>Bust: </b></span><span>86 </span><span><b>waist: </b></span><span>64 </span><span><b>Hips: </b></span><span>93 </span><span><b>Pants: </b></span><span>26 </span><span><b>Shoes: </b></span><span>40 </span><span><b>Hair: </b></span><span>brown </span><span><b>Eyes: </b></span><span>blue</span>
that output this:
Hight: 1.78 Bust: 86 waist: 64 Hips: 93 Pants: 26 Shoes: 40 Hair: brown Eyes: blue
My question is, how do I make this 5 ->
turn into a <br> tag.
I was thinking about something like this, but of course its not working:
$customField = str_replace(" ","<br>",$customField);
Keep in mind that this code part of a mailer.
Thank you.
That is because you have 1 space and 4
, use: