|
|
File: /home/mitarbeiter/sven/public_html/tmp/devcon_php_base/text/quick_template.php
dev/con php base - Text functions
/home/mitarbeiter/sven/public_html/tmp/devcon_php_base/text/quick_template.php::quick_template
Insert data into a template easily.
|
public module quick_template
Insert data into a template easily.
|
|
|
|
Public Method Details |
&quick_template |
public string &quick_template( array $tags, string $template )
|
|
Replace tags by data.
Tags have the form <tagname>. If you want to replace all "<foo>" in atemplate by "bar" you need $tags = array ('foo' => 'bar').
|
Parameter |
|
array |
$tags |
|
|
Data keyed by tag name. |
|
|
|
Returns |
string |
|
|
|
|
PHPDoc 1.0beta |