Jump to content


starting and stopping PHP several times

php efficiency

  • Please log in to reply
1 reply to this topic

#1 MFA


    Advanced Member

  • Members
  • PipPipPip
  • 31 posts

Posted 01 April 2013 - 01:35 AM


I am wondering whether starting (<?php) and stopping (?>) PHP several times throughout a script has an affect on the speed of which it is processed. Sometimes I have a few lines of HTML in between sections of PHP language. Would it more efficient if I just echo'd this HTML section (in PHP) or does it not make a difference?

Edited by MFA, 01 April 2013 - 01:36 AM.

#2 trq


    Advanced Member

  • Administrators
  • 31,039 posts
  • LocationSydney, Australia.

Posted 01 April 2013 - 02:43 AM

This kind of micro optimisation is not worth considering. If your code is clearer breaking in and out of php tags, do so.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users