php-src/Zend/tests/line_const_in_array.phpt
2014-10-12 20:55:52 +02:00

22 lines
187 B
PHP

--TEST--
Use of __LINE__ in arrays
--FILE--
<?php
var_dump([
__LINE__,
__LINE__,
__LINE__,
]);
?>
--EXPECT--
array(3) {
[0]=>
int(4)
[1]=>
int(5)
[2]=>
int(6)
}