php如何回显';获得;有格式吗?

php如何回显';获得;有格式吗?,php,Php,我在php中有这样的代码 echo get($contents,'<plaintext>','</plaintext>') ; echo-get($contents,,“”); 它给了我简单的纯文本。 现在我想用增加字体大小的方式格式化这个回音文本 所以我试着 echo "<div style ='font:30px Arial,tahoma,sans-serif;color:#555'>get($contents,'<plaintext>

我在php中有这样的代码

echo  get($contents,'<plaintext>','</plaintext>') ;
echo-get($contents,,“”);
它给了我简单的纯文本。 现在我想用增加字体大小的方式格式化这个回音文本 所以我试着

 echo "<div style ='font:30px  Arial,tahoma,sans-serif;color:#555'>get($contents,'<plaintext>','</plaintext>') </div>";
echo“get($contents,,”);
但它不起作用怎么做?? 我通过做更多的实验来尝试这一点,但没有一件事情起作用。
请在这方面帮助我

您需要在字符串中附加函数。就这样,

echo "<div style ='font:30px  Arial,tahoma,sans-serif;color:#555'>" . get($contents,'<plaintext>','</plaintext>') . "</div>";
echo”“。获取($contents,,“”)。"";
也许吧?“回声”。获取($contents,,“”)。"";