So I’m trying to print this out on one line, But when it executes it prints the statement out on two separate lines. Any ideas why?
Example:
Welcome
12/14/2012
<?php
print("<h1>Welcome</h1>" .
"<h2>" . Date('n \/ j \/ Y') . "</h2>");
?>
If this make any difference I’m trying to print a welcome one the left side of the page, and the date on the right Example:
Welcome 12/14/2012
that’s an html issue. As h1 and h2 are block level elements the browser puts a line break at the end. You can use css to change that or use more appropriate html