Jump to content

page break between integer variables.

Recommended Posts

html line break or php line break?

// <br> is html causes line break each outputted value as viewed on website page, 
// while "\n" causes line break of each line of code result when seen by viewing page source code

echo ($phone = 3152245368) . "<br>\n";
echo ($phone = 3156045555) . "<br><hr>\n";

//however its usually done this way
$phone = 3152245368;
echo $phone . "<br>\n";
$phone = 3156045555;
echo $phone . "<br><hr>\n";
echo ($phone = 3152245368) . "<br>\n";
echo ($phone = 3156045555) . "<br><hr>\n";
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...