echo

De functie echo geeft output. In tegenstelling tot andere functies zijn haakjes niet nodig. De onderstaande code werkt.

<?php
echo 'Dit werkt!';
echo('en dit ook!');
?>
Er is nog een manier op echo af te korten, namelijk:
<?= 'Hallo!'; ?>

Verwante functies



Referentie op PHP.net

Copyright © 2011 - Php-leren.nl