...

View Full Version : about space in php



love_to_learn
03-05-2012, 09:59 PM
hi all

now i'm new with php < my Q is :

how can i make ( long space ) in the string

i want the output like this

" my name is ( me )!";

thx

Keleth
03-05-2012, 10:03 PM
By long space, do you mean more then one concurrent whitespace in a sentence? Have you tried &nbsp;?

love_to_learn
03-05-2012, 10:36 PM
&nbsp;

worked!

thx Kelethfor your Help

webdev1958
03-05-2012, 10:56 PM
One option


<?php
echo '"'. str_repeat('&nbsp;', 20).'"';
?>inserts 20 blank spaces between the ""



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum