Is there any performance hit if I call:
<?php
code here
?>
multiple times?
In other words, I have snippets of php code which I end and then start new. The reason I do this is a personal way of thinking of things. To me it delineates where certain things begin and end. Just makes things clearer really.
So my code looks like:
<?php
code here
?>
HTML here
<?php
code here
?>
<?php
code here
?>
HTML here
<?php
code here
?>
HTML here
etc....
I was wondering if I'm hurting my sites performance by calling the php tag. Does the tag just tell the server, hey I'm php code do something with me or does it load up something like a library. I feel like it is the former but I was curious if anyone could clarify it for me. Thanks.
<?php
code here
?>
multiple times?
In other words, I have snippets of php code which I end and then start new. The reason I do this is a personal way of thinking of things. To me it delineates where certain things begin and end. Just makes things clearer really.
So my code looks like:
<?php
code here
?>
HTML here
<?php
code here
?>
<?php
code here
?>
HTML here
<?php
code here
?>
HTML here
etc....
I was wondering if I'm hurting my sites performance by calling the php tag. Does the tag just tell the server, hey I'm php code do something with me or does it load up something like a library. I feel like it is the former but I was curious if anyone could clarify it for me. Thanks.