我想将这两行文本翻译为一个字符串。基本上我想逃避引号并添加<br>
标记,就像我在下面的尝试一样。
<?php
global $jwp_lang;
echo __("This is the first line"<br>"this is the second line", $jwp_lang['basictheme']);?>
?>
我怎样才能做到这一点?
答案 0 :(得分:3)
请检查以下代码
<?php
global $jwp_lang;
echo __("This is the first line<br>this is the second line", $jwp_lang['basictheme']);
?>
答案 1 :(得分:0)
试试这个:
global $jwp_lang;
echo __("This is the first line <br> this is the second line" ,$jwp_lang['basictheme']);
答案 2 :(得分:0)
试试这个
<?php
global $jwp_lang;
echo "This is the first line <br> this is the second line" .$jwp_lang['basictheme'];
?>