PHP String 转int的问题
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:40:50
Original
1040 people have browsed it
<code><?php $a=012;
echo (int)$a;
echo $a/4;
</code></code>
Copy after login
Copy after login
为什么$a被转成了10???
回复内容:
<code><?php $a=012;
echo (int)$a;
echo $a/4;
</code></code>
Copy after login
Copy after login
为什么$a被转成了10???
数字0开头,是8进制
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
Latest Articles by Author
-
2025-02-26 03:58:14
-
2025-02-26 03:38:10
-
2025-02-26 03:17:10
-
2025-02-26 02:49:09
-
2025-02-26 01:08:13
-
2025-02-26 00:46:10
-
2025-02-25 23:42:08
-
2025-02-25 22:50:13
-
2025-02-25 21:54:11
-
2025-02-25 20:45:11