- var_dump: documentation ( source)
- array_pop: documentation ( source)
<?php
class Foo {
public static function bar($type = 0) {
if ($type == 0) {
return array('a'=>'abcedfg');
} else {
return array('a' => '1234567890');
}
}
}
var_dump(array_pop(Foo::bar()));