Guest Xternal34 Posted April 22, 2006 Share Posted April 22, 2006 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 More sharing options...
justsomeguy Posted April 22, 2006 Share Posted April 22, 2006 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 More sharing options...
calvin182 Posted April 22, 2006 Share Posted April 22, 2006 here's what I'd do: <?phpecho "$var1<br/>$var2";?> Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now