Title: Coding suggestion, opening/closing php tags
Last modified: July 1, 2019

---

# Coding suggestion, opening/closing php tags

 *  [DrLightman](https://wordpress.org/support/users/drlightman/)
 * (@drlightman)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/coding-suggestion-opening-closing-php-tags/)
 * Hello,
 * as you can see here, the first screen shows a closing tag followed in the next
   line by an opening one, that configurations outputs a newline, that’s bad. Recomendation
   is to remove both:
 * > [View post on imgur.com](https://imgur.com/zBcJo24)
 * As you can see here instead, there a closing php tag after the last block of 
   php’code in a php file, the common recommentadion about that is to omit completely
   the closing php tag to avoid dangerous invisible elements output after it, such
   as tabs, newlines, spaces:
 * > [View post on imgur.com](https://imgur.com/xHN5YJf)
 * Thank you

The topic ‘Coding suggestion, opening/closing php tags’ is closed to new replies.

 * ![](https://ps.w.org/a3-lazy-load/assets/icon.svg?rev=1049979)
 * [a3 Lazy Load](https://wordpress.org/plugins/a3-lazy-load/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/a3-lazy-load/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/a3-lazy-load/)
 * [Active Topics](https://wordpress.org/support/plugin/a3-lazy-load/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/a3-lazy-load/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/a3-lazy-load/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [DrLightman](https://wordpress.org/support/users/drlightman/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/coding-suggestion-opening-closing-php-tags/)
 * Status: not resolved