%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/diaspora/api/vendor/nikic/php-parser/test/code/formatPreservation/
Upload File :
Create Path :
Current File : //var/www/html/diaspora/api/vendor/nikic/php-parser/test/code/formatPreservation/array_spread.test

Array spread
-----
<?php
$items = [
...$value
];
-----
$array = $stmts[0]->expr->expr;
$array->items[] = new Expr\ArrayItem(new Expr\Variable('b'));
-----
<?php
$items = [
...$value, $b
];
-----
<?php
$items =
[
... $value
];
-----
$array = $stmts[0]->expr->expr;
$array->items[] = new Expr\ArrayItem(new Expr\Variable('c'), null, false, [], true);
-----
<?php
$items =
[
... $value, ...$c
];

Zerion Mini Shell 1.0