Posted By

milolin on 05/18/11


Tagged

php space function repeat nbsp


Versions (?)

space function


 / Published in: PHP
 

  1. function space($num = 1) {
  2. for ($i=1; $i<=$num; $i++) {
  3. echo "&nbsp;";
  4. }
  5. }
  6. echo "demo<br />";
  7. echo space(4)."demo";

Report this snippet  

You need to login to post a comment.