take multiple expressions.
it doesn't have a return value. So, echo is a little bit faster but print
return a integer value of 1.
<?php
if(print('something'))
// makes sense, while
if(echo('something'))
// doesn’t
?>
<?php
if(print('something'))
// makes sense, while
if(echo('something'))
// doesn’t
?>
No comments:
Post a Comment