Home > Backend Development > PHP Tutorial > PHP echo十六进制数值解决方案

PHP echo十六进制数值解决方案

WBOY
Release: 2016-06-13 11:24:55
Original
1354 people have browsed it

PHP echo十六进制数值

<br /><?php<br />echo 0x9f;<br />?><br />
Copy after login

运行程序输出159。
159的16进制是9f,为什么前面要加0x呢?
还有这里为什么可以直接输出一个16进制数值而不是报错呢?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template