Las comillas dobles solo interpretan variables, no interpretan funciones. Para que se imprima el resultado debes: salir de las comillas, concatenar, ejecutar la funcion, concatenar y volver a abrir comillas.
Código php:
Ver originalecho"<table width='132' border='0' align='center'>
<tr>
<td width='32' bgcolor='#cccccc' class='letra'><strong>$horallegada</strong></a></td>
<td width='82' bgcolor='#cccccc' class='letra'>".segundos_tiempo($segundos)."</a></td>
</tr>
</table>
";