Jump to content

[SOLVED] echo and newline


jacobmott

Recommended Posts

Yeah you're putting the br outside of your ;

You would either have to close your php tags ?> <br /> <?php which I don't think is that practical, personally.

Or something like neil suggested:

 

for ($i = 0;$i < 10; $i++){
    echo $i <br />;
    }

 

Really just need to move your ; to the end of the line.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.