php line change including space for string -
i need put hyperlinks strings, line break wrong. need change line per string, underlined links don't mix each other.
$aaa = 'aaaaaaaaaaaaaaaa' $aaa = 'bbbbbbb'; $aaa = 'ccccccc cccccc'; for($i = 1; $i <= 3; $i++) { echo $aaa; echo ' '; ----->space between string }
currently, i'm getting wrong outputs below:
wrong output1: aaaaaaaaaaaaaaaa bbb bbbb wrong output2: aaaaaaaaaaaaaaaa bbbbbbb ccccccc cccccc
i need print out this:
aaaaaaaaaaaaaaaa bbbbbbb ccccccc cccccc
i tried , , still change line per @ space.
===========================================
updated question:
ok, think explanation bad:
think print out values database using loop:
google images google email google mail google books google earth google voice google scholar google finance
i'm printing out them in line below.
google images google email google mail google books google earth google voice
my concern prints out below:
google images google email google mail google books google earth google
voice
you rewrite variable values here.
$aaa = 'aaaaaaaaaaaaaaaa' $aaa = 'bbbbbbb'; $aaa = 'ccccccc cccccc';
you should need this
$aaa = 'aaaaaaaaaaaaaaaa' $aaa .= 'bbbbbbb'; $aaa .= 'ccccccc cccccc';
but if want result, here little example
$array_str = array('aaaaaaaaaaaaaaaa', 'bbbbbbb', 'ccccccc cccccc'); foreach($array_str $value) { echo $value.' '; }
Comments
Post a Comment