The echo command returns nothing. But printing returns 1. Always. What is the practical use of this return 1? . Of course, it can be used in an expression, but it is not useless if it is always true , and causes the use of more code?
<?php unset($empty); if(print ($empty)){ echo "Yep sure thing. Print strikes again with a ", "1."; } ?>
Should it always return the same result as below, so what's the point then?
<?php print ($empty); echo "Yep sure thing. Print strikes again with a ", "1."; ?>
This question is about returning 1, and not that "Echo allows you to repeat multiple lines separated by commas until printing is completed," etc.
source share