- var_dump: documentation ( source)
<?php
class Test
{
protected $commands = ['foo', 'bar'];
public function commands($command)
{
var_dump($command);
}
public function boot()
{
foreach ($this->commands as $command) {
$this->commands($command);
}
}
}
(new Test())->boot();