Tiny Q about print out "select" menu values in one line
Permalink
I have this select menu (handlle = "select")
A
B
C
If i do this:
HTML Print out: A <br> B <br> C <br>
I try to fix this by this php function (wont work still "<br>)
How to fix this? (I want: a b c) to use inside <div class="<?= $select ?>"...rest of the code
A
B
C
If i do this:
$select = $c->getAttribute('select'); echo $select;
HTML Print out: A <br> B <br> C <br>
I try to fix this by this php function (wont work still "<br>)
$tags = str_replace("\n", " ", $c->getAttribute('select'));
How to fix this? (I want: a b c) to use inside <div class="<?= $select ?>"...rest of the code