Que tal, dices que tienes una funcion si tienes una funcion debes hacer un return por que en tu capa donde quieres mostrar tu impresion colocas:
<? print mi_funcion('mi_parametro');?>
Yo creo que esta seria una solucion:
Código:
<?
function mostrar($valor)
{
$valor = $valor . ' <br>esta es parte de la funcion';
return($valor);
}?>
<style type="text/css">
<!--
#Layer1 {
position:absolute;
width:200px;
height:115px;
z-index:1;
left: 127px;
top: 118px;
}
-->
</style>
<div id="Layer1"><? print mostrar('hola');?></div>