在 php 中的文本之间添加 <br> 标签


Adding a <br> tag between text in php

我想将这两行文本一起翻译为一个字符串。基本上我想转义引号并添加一个<br>标签,就像我在下面的尝试一样。

<?php
   global $jwp_lang;
   echo __("This is the first line"<br>"this is the second line", $jwp_lang['basictheme']);?>
   ?>

我怎样才能做到这一点?

请检查

以下代码

<?php
     global $jwp_lang;
     echo __("This is the first line<br>this is the second line", $jwp_lang['basictheme']);
?>

试试这个:

global $jwp_lang;
echo __("This is the first line <br> this is the second line" ,$jwp_lang['basictheme']);