echo or print??

Permalink
Hi i'm not too ofay with php and i've found various verisons of code, some use echo and some print, i.e.

<?php print $c->getCollectionName(); ?> or <?php echo $c->getCollectionName() ?>
<?php print $c->getCollectionDescription() ?> or <?php echo $c->getCollectionDescription() ?>


Could anyone enlighten me as to which is better to use echo or print?

BHWW
 
WebcentricLtd replied on at Permalink Best Answer Reply
Hi,
depends exactly what you are doing but they are generally interchangeable.
This might help:
http://www.learnphponline.com/php-basics/php-echo-vs-print...
BHWW replied on at Permalink Reply
BHWW
Thanks, Echo it is then!