Terminal Icon

Wash

» Stamp, alternative PHP Templates

The wash() method cleans the string output of a template. This function will remove all HTML comments and redundant white space.

Example:

 
    
    $template 
"HELL<!-- eraseme -->OW<!-- and:me(yeah) -->ORLD";
    
$stamp = new Stamp($template);
    
$stamp->wash();
    echo 
$stamp// outputs: HELLOWORLD

Manual Pages

  • Philosophy
  • Welcome
  • Basics
  • Download
  • Painter Plugins
  • Navigation
  •  



    copyright © 2011 Gabor de Mooij | Stamp PHP Template Library