html - PHP: multiple spaces in PHP implode -


i imploding array. instead of using "," or other delimiter 2 spaces.

how can accomplished?

i've tried:

<div>{implode("  ", $my_array)}</div> // condenses 1 space. <div>{implode("&nbsp; &nbsp;", $my_array)}</div> // prints out &nbsp. not use hashes in code. 

note: not use # in nbsp. stackoverflow renders them spaces if don't :p

try "\t" (a horizontal tab) or "&nbsp &nbsp" (two html spaces)


Comments

Popular posts from this blog

php - cannot display multiple markers in google maps v3 from traceroute result -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -