New line break in PHP?
-
Hi, I”m trying to format results on my search results page in a specific way. Right now it looks like this:
<?php if($post->post_type == 'post') { echo the_time('Y'); echo the_time('M'); echo the_time('j'); echo the_time('H:i'); } else {print "Page";} ?>
How can I format it with line breaks to look like this?
<?php if($post->post_type == 'post') { echo the_time('Y'); [NEWLINE] echo the_time('M'); [NEWLINE] echo the_time('j'); [NEWLINE] echo the_time('H:i'); } else {print "Page";} ?>
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘New line break in PHP?’ is closed to new replies.