📄 006.phpt
字号:
--TEST--Test array_pop behaviour--FILE--<?phparray_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--fubararray(3) { [0]=> string(3) "foo" [1]=> string(3) "bar" [2]=> string(6) "foobar"}fubararray(2) { [3]=> string(3) "foo" [4]=> string(3) "bar"}fubararray(2) { ["a"]=> string(3) "foo" ["b"]=> string(3) "bar"}--UEXPECT--fubararray(3) { [0]=> unicode(3) "foo" [1]=> unicode(3) "bar" [2]=> unicode(6) "foobar"}fubararray(2) { [3]=> unicode(3) "foo" [4]=> unicode(3) "bar"}fubararray(2) { [u"a"]=> unicode(3) "foo" [u"b"]=> unicode(3) "bar"}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -