installation.de

Ein neues WordPress-Weblog

Die Ausgabemethode <<<EOF in PHP

Mai 25, 2009 Categories: PHP Tags: ,

Die meisten nutzen sie nicht oder kennen sie erst gar nicht. Die etwas andere Methode innerhalt eines PHP-Dokuments wieder Text/HTML auszugeben.

Statt z.B. diese Methode:

<?php /* codestuff */ ?>
<p>Mein Text</p>
<?php /* more code */ ?>

kann man es auch so machen:

<?php /* codestuff */ echo
<<<EOF
<p>Mein Text</p>
EOF;
/* more code */ ?>

3 Comments

  1. KattyBlackyard on Juni 15, 2009 10:57

    Hi, interest post. I’ll write you later about few questions!

  2. CrisBetewsky on Juli 6, 2009 9:54

    Some of us even don’t realize the importance of this information. What a pity.

  3. installation.de :: PHP :: PHP 5.3.0 ist da. Updaten oder lassen? on August 6, 2009 1:48

    [...] Die Ausgabemethode <<<EOF in PHP [...]

Write a Comment