Jump to content

Quick PHP Question *Concerning Variables


Guest Xternal34
 Share

Recommended Posts

Guest Xternal34

Okie... just a quick newbie PHP question. :) Okie, I don't really feel like explaining why I'm needing knowledge for this... just saying help me :) How do you display two variables with a breakline in-between? :)

Link to comment
Share on other sites

That almost sounds like a homework question.It depends, if you are talking about an HTML line break, then it's "echo $var1 . "<br>" . $var2;", if you are talking about a newline character, you can write "echo "{$var1}\n{$var2};".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...