Home Ask Login Register

Developers Planet

Your answer is one click away!

micky February 2016

Alternative of using <br> in several lines

I am required to copy and paste several codes in my websites and i just can't do it. the way i am doing takes a bit more time. is there any alternative to do this in simpler way? I just need an alternative for inserting <br> in every lines. What i am doing is this: inserting <br> in every line.

    <br>$db = new mysqli("localhost", "root","","learndb");
    <br>$stmt = $db->prepare("select * from admin where username = ?");


djl February 2016

You can use the \r\n in a php echo.

See this post: PHP - how to create a newline character?

Compa88 February 2016

You can use \r \n....echo '\r'

Post Status

Asked in February 2016
Viewed 2,662 times
Voted 6
Answered 2 times


Leave an answer

Quote of the day: live life