简体   繁体   中英

Print the Curl output in bold in PHP

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM