ginerjm Posted May 13, 2017 Share Posted May 13, 2017 Use php tags: foreach($myarray as $k=>$v) { echo "<label>My inputs</label>"; echo "<tr><td>$k</td><td$v</td></tr>"; } Use code tags: foreach($myarray as $k=>$v) { echo "<label>My inputs</label>"; echo "<tr><td>$k</td><td$v</td></tr>"; } So using code tags drops the double spacing but neither one respects the indents in my code. Link to comment Share on other sites More sharing options...
cyberRobot Posted May 15, 2017 Share Posted May 15, 2017 @ginerjm - So I moved your test post and modified the title. To indent the code, do you use tabs? I usually need to change the tabs in my code to spaces. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.