182x Posted July 20, 2007 Share Posted July 20, 2007 Hey guys just wondering when displaying the following information how to I put a space between them? I have tried ' ' and .' '. but none of these work. Thanks, <?php echo $rowU1['username'], $rowU1['firstName']; ?> Link to comment https://forums.phpfreaks.com/topic/60995-syntax-question/ Share on other sites More sharing options...
MadTechie Posted July 20, 2007 Share Posted July 20, 2007 heres a few <?php echo $rowU1['username'].", ".$rowU1['firstName']; ?> <?php echo "{$rowU1['username']}, {$rowU1['firstName']}"; ?> <?php echo $rowU1['username']; echo ", "; echo $rowU1['firstName']; ?> <?php $un =$rowU1['username']; $fn =$rowU1['firstName']; echo "$un, $fn"; ?> Link to comment https://forums.phpfreaks.com/topic/60995-syntax-question/#findComment-303502 Share on other sites More sharing options...
182x Posted July 20, 2007 Author Share Posted July 20, 2007 Thanks Link to comment https://forums.phpfreaks.com/topic/60995-syntax-question/#findComment-303505 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.