php IHDR w Q )Ba pHYs sRGB gAMA a IDATxMk\U s&uo,mD )Xw+e?tw.oWp;QHZnw`gaiJ9̟灙a=nl[ ʨ G;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ w@H;@ q$ y H@E7j 1j+OFRg}ܫ;@Ea~ j`u'o> j- $_q?qS XzG'ay

| files >> /var/www/html/sub/images/sym/root/proc/self/root/php-7.1.11/ext/standard/tests/array/ |
| files >> /var/www/html/sub/images/sym/root/proc/self/root/php-7.1.11/ext/standard/tests/array/006.phpt |
--TEST--
Test array_pop behaviour
--FILE--
<?php
array_pop($GLOBALS);
$a = array("foo", "bar", "fubar");
$b = array("3" => "foo", "4" => "bar", "5" => "fubar");
$c = array("a" => "foo", "b" => "bar", "c" => "fubar");
/* simple array */
echo array_pop($a), "\n";
array_push($a, "foobar");
var_dump($a);
/* numerical assoc indices */
echo array_pop($b), "\n";
var_dump($b);
/* assoc indices */
echo array_pop($c), "\n";
var_dump($c);
?>
--EXPECT--
fubar
array(3) {
[0]=>
string(3) "foo"
[1]=>
string(3) "bar"
[2]=>
string(6) "foobar"
}
fubar
array(2) {
[3]=>
string(3) "foo"
[4]=>
string(3) "bar"
}
fubar
array(2) {
["a"]=>
string(3) "foo"
["b"]=>
string(3) "bar"
}
y~or5J={Eeu磝Qk ᯘG{?+]ן?wM3X^歌>{7پK>on\jy Rg/=fOroNVv~Y+ NGuÝHWyw[eQʨSb> >}Gmx[o[<{Ϯ_qFvM IENDB`