[英]Print the Curl output in bold in PHP
Is there any way we can print the output of Curl in bold letters ? 有什么办法可以用粗体字母打印Curl的输出?
My code is : 我的代码是:
[insert_php]
$ch = curl_init("example.com");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, 0);
echo curl_exec($ch);
curl_close($ch);
[/insert_php]
[insert_php]
as I am using wordpress . [insert_php]
因为我正在使用wordpress。
You will want to add the tag around the output. 您将需要在输出周围添加标签。 So you can change the echo line to something like this:
因此,您可以将回声线更改为以下形式:
echo '<b>' . curl_exec($ch) . '</b>';
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.