Use of string --ASCII code to convert to characters

zhaozj2021-02-16  109

I want to convert the ASCII code into characters or, how to do it?

CHR () and ORD () or sprintf () will help you swap back between them.

$ letter = chr (67); // Upper case c

$ ascii_code = ORD ($ letter); // 67

$ letter = Sprintf ("% c", $ ascii_code); // Upper case C

?>

转载请注明原文地址:https://www.9cbs.com/read-10633.html

New Post(0)