Just curious about the echo commnad

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi there everyone,

This isn't urgent i'm just curious :-)  If I want to use HTML code in my
PHP, I usually close the PHP with ?> do the HTML command with <?=$code?> if
I need to output PHP then open PHP again with <? if I need to write alot of
PHP.

However, i've noticed alot of people use echo to output HTML instead of this
other method, which method is correct and why?  I just want to understand if
I am doing it a bad way or if I should learn to adopt echo's for everything?

Thanks, just curious so no hurry for a reply :-)

Regards

Chris Payne


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux