❮ Errors
❯
- echo
print vs echo
echo can get several parameters, print can only get one.
examples/intro/print_vs_echo.php
<?php echo 2, 3; ?> <br> <?php // print 2, 3; // Parse error: parse error print 2; print 3; ?>
echo can get several parameters, print can only get one.
<?php echo 2, 3; ?> <br> <?php // print 2, 3; // Parse error: parse error print 2; print 3; ?>