简体   繁体   中英

How to add a character special in this php code?

I'm trying to add the special character ® in this code:

certificate_print_text($pdf, $x, $y + 105, 'C', 'Helvetica', '', 24, $course->fullname);

i want to represent something like this: Dentokind® (dentokind is the name of the course)

I hope you can help me.

thank you :)

As stated in the comments, the HTML-Code for the registered trademark symbol is ® so your line of code should look similar to this:

certificate_print_text($pdf, $x, $y + 105, 'C', 'Helvetica', '', 24, $course->fullname."®");

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