如何在输出字段之前添加文本

时间:2015-11-30 14:38:48

标签: php

我如何在字段输出之前添加文本?

代码是:

<?php
global $current_user;
echo '<h1>DATI DI FATTURAZIONE</h1>';
echo pmpro_formatAddress(
$current_user->first_name . ' ' . $current_user->last_name,
$current_user->pmpro_baddress1, 
$current_user->pmpro_bcity,
$current_user->pmpro_bstate,
$current_user->pmpro_bzipcode,
$current_user->pmpro_bcountry,
$current_user->pmpro_bphone,
    $current_user->company
);
?>

我想举例如:

name:name lastname

现在是:

名称姓氏

谢谢大家

1 个答案:

答案 0 :(得分:0)

编辑

$current_user->first_name . ' ' . $current_user->last_name,

'Name : '.$current_user->first_name . ' ' . $current_user->last_name,