2011-11-26 16:09:39 +01:00
|
|
|
Different integer syntaxes
|
|
|
|
-----
|
|
|
|
<?php
|
2011-11-27 11:20:35 +01:00
|
|
|
|
2011-11-26 16:09:39 +01:00
|
|
|
0;
|
|
|
|
1;
|
|
|
|
@@{ PHP_INT_MAX }@@;
|
|
|
|
@@{ PHP_INT_MAX + 1 }@@;
|
|
|
|
0xFFF;
|
|
|
|
0xfff;
|
|
|
|
0XfFf;
|
|
|
|
0777;
|
2011-12-18 13:04:27 +01:00
|
|
|
0b111000111000;
|
2011-11-26 16:09:39 +01:00
|
|
|
-----
|
2011-11-26 17:10:18 +01:00
|
|
|
array(
|
|
|
|
0: Scalar_LNumber(
|
|
|
|
value: 0
|
|
|
|
)
|
|
|
|
1: Scalar_LNumber(
|
|
|
|
value: 1
|
|
|
|
)
|
|
|
|
2: Scalar_LNumber(
|
2012-06-08 18:09:42 +02:00
|
|
|
value: @@{ PHP_INT_MAX }@@
|
2011-11-26 17:10:18 +01:00
|
|
|
)
|
|
|
|
3: Scalar_DNumber(
|
2012-06-08 18:09:42 +02:00
|
|
|
value: @@{ PHP_INT_MAX + 1 }@@
|
2011-11-26 17:10:18 +01:00
|
|
|
)
|
|
|
|
4: Scalar_LNumber(
|
|
|
|
value: 4095
|
|
|
|
)
|
|
|
|
5: Scalar_LNumber(
|
|
|
|
value: 4095
|
|
|
|
)
|
|
|
|
6: Scalar_LNumber(
|
|
|
|
value: 4095
|
|
|
|
)
|
|
|
|
7: Scalar_LNumber(
|
|
|
|
value: 511
|
|
|
|
)
|
|
|
|
8: Scalar_LNumber(
|
2011-12-18 13:04:27 +01:00
|
|
|
value: 3640
|
|
|
|
)
|
2015-02-26 16:26:29 +01:00
|
|
|
)
|