mirror of
https://github.com/php/php-src.git
synced 2025-08-20 17:34:35 +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"]);
|
||||
var_dump($ar);
|
||||
|
||||
$ar[] = '3';
|
||||
$ar[] = 4;
|
||||
var_dump($ar);
|
||||
|
||||
?>
|
||||
===DONE===
|
||||
<?php exit(0); ?>
|
||||
|
@ -86,4 +90,14 @@ object(ArrayObject)#1 (2) {
|
|||
[2]=>
|
||||
int(2)
|
||||
}
|
||||
object(ArrayObject)#1 (4) {
|
||||
[0]=>
|
||||
int(0)
|
||||
[2]=>
|
||||
int(2)
|
||||
[4]=>
|
||||
string(1) "3"
|
||||
[5]=>
|
||||
int(4)
|
||||
}
|
||||
===DONE===
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue