我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

在PHP中以粗体显示Curl输出

Is there any way we can print the output of Curl in bold letters ?

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 .

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>';

近期文章

  • 正则表达式,获取值结束标记
  • 无法显示刀片中的两列结果,laravel 5.1
  • 将关联数组映射到另一个关联数组
  • 如何解析数组元素?
  • 搜索设施结果PhP
  • 允许字符串中的某些字符(php)
  • 无法打印简单的JSON?
  • mysql在where条件中获取数据
  • Cometchat 5.6 + Codeigniter [关闭]
  • 或变量(T_VARIABLE)或数字(T_NUM_STRING)
  • codeigniter没有检测到任何控制器
  • Symfony2:如何在另一个js中包含一个js文件?
  • ZF2和字段集/表单用法 - 意外行为
  • 配置在Drupal世界中占有一席之地吗?
  • 循环数据库记录集创建的电子邮件
  • 将客户地址原语包装到类中
  • Laravel表单模型绑定与下拉列表填充表格
  • 从参考表Eloquent Laravel 5中获取记录
  • 试过这个:SQL语法错误 - 无法插入多行
  • $ _POST ['val'] = 0未提交ajax时

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华