<?php
class Foo
{
public $array = array('key' => "someFunc");
public function someFunc($foo, $bar);
{
return $foo;
}
public function anotherFunc()
{
foreach($this->array as $value) { }
return $bar;
}
}
$foo = new Foo();
PD9waHAKCmNsYXNzIEZvbyAKewoJcHVibGljICRhcnJheSA9IGFycmF5KCdrZXknID0+ICJzb21lRnVuYyIpOwoKCXB1YmxpYyBmdW5jdGlvbiBzb21lRnVuYygkZm9vLCAkYmFyKTsgCgl7CgkJcmV0dXJuICRmb287Cgl9CgoJcHVibGljIGZ1bmN0aW9uIGFub3RoZXJGdW5jKCkgCgl7CgkJZm9yZWFjaCgkdGhpcy0+YXJyYXkgYXMgJHZhbHVlKSB7CgkJCSRiYXIgPSBjYWxsX3VzZXJfZnVuYyhbIkZvbyIsICR2YWx1ZV0sIFsiRk9PIiwgIkJBUiJdKTsKCQl9CgoJCXJldHVybiAkYmFyOwoJfQp9CgokZm9vID0gbmV3IEZvbygpOwoKdmFyX2R1bXAoJGZvby0+YW5vdGhlckZ1bmMoKSk7