mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
Update test with check for [] assignment
This commit is contained in:
parent
96cb40a072
commit
0763dfa16f
1 changed files with 14 additions and 0 deletions
|
@ -30,6 +30,10 @@ unset($ar[7]);
|
||||||
unset($ar["c"]);
|
unset($ar["c"]);
|
||||||
var_dump($ar);
|
var_dump($ar);
|
||||||
|
|
||||||
|
$ar[] = '3';
|
||||||
|
$ar[] = 4;
|
||||||
|
var_dump($ar);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
===DONE===
|
===DONE===
|
||||||
<?php exit(0); ?>
|
<?php exit(0); ?>
|
||||||
|
@ -86,4 +90,14 @@ object(ArrayObject)#1 (2) {
|
||||||
[2]=>
|
[2]=>
|
||||||
int(2)
|
int(2)
|
||||||
}
|
}
|
||||||
|
object(ArrayObject)#1 (4) {
|
||||||
|
[0]=>
|
||||||
|
int(0)
|
||||||
|
[2]=>
|
||||||
|
int(2)
|
||||||
|
[4]=>
|
||||||
|
string(1) "3"
|
||||||
|
[5]=>
|
||||||
|
int(4)
|
||||||
|
}
|
||||||
===DONE===
|
===DONE===
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue