Originally posted by dror_israel
Hello,
Is it OK to mix php & html tags in the code or should i use echo to print the html stuff?
(In order to prevent switching between the two modes)
Is switching between the two modes lot of times causes the pages to generate slower?
Thanks
You won't notice a difference in performance if you mix the two. It really all boils down to programmer preference. Some people are adamantly opposed to mixing the two, and believe that you should start any php script with <? and end with a ?>. I believe you should do whatever you want, since you're the one who is building/troubleshooting the application.
--Brad Fears