fenom/benchmark/aspect/templates/subdir/subtpl.php
2013-02-07 17:37:16 +04:00

18 lines
258 B
PHP

<?php
function template_subtpl($tpl) {
if($tpl["user"]["name"]) {
echo 'My name is '.$tpl["user"]["name"];
} else {
echo 'I haven\'t name :(';
};
?>
Ok.
My email <?php echo $tpl["user"]["name"].'. It is great!'; ?>
<?php
}
?>