Kai345: Schöne quelltexte

Beitrag lesen

[latex]Mae  govannen![/latex]

Du kannst Strings in PHP auch über mehrere Zeilen angeben

[...]

echo '
  <body>
    <h1>Titel</h1>
    <div id="deineid">
      <p>Absatz</p>
    </div>
  </body>
';

  
~~~php
// PHP-Code  
// PHP-Code  
// PHP-Code  
?>  
   <body>  
     <h1>Titel</h1>  
     <div id="deineid">  
       <p>Absatz</p>  
     </div>  
   </body>  
<?PHP  
// PHP-Code  
// PHP-Code

ist viel einfacher, und man kann -je nach Art der Ausgabe- auch noch diverse Escapes sparen.

Cü,

Kai

--
A workaround for an avoidable problem often adds clutter and overhead to the program which
could have been avoided by not creating the problem in the first place.(Garrett Smith/clj)
Foren-Stylesheet Site Selfzeug JS-Lookup
SelfCode: sh:( fo:| ch:? rl:( br:< n4:( ie:{ mo:| va:) js:| de:> zu:) fl:( ss:| ls:?