22 lines
412 B
Plaintext
22 lines
412 B
Plaintext
class Program {
|
|
|
|
void main() {
|
|
$this->b($this->a('First A'), $this->a('Second A'), $this->a('Third A'));
|
|
}
|
|
|
|
string a(string $p) {
|
|
mixed[] $backtrace = debug_backtrace();
|
|
if(array_key_exists('args', $backtrace[0])) {
|
|
var_export($backtrace[0]['args']);
|
|
} else {
|
|
print("Cannot aquire arguments\n");
|
|
}
|
|
return $p;
|
|
}
|
|
|
|
void b(string $p1, string $p2, string $p3) {
|
|
print("$p1, $p2, $p3");
|
|
}
|
|
|
|
}
|