- print_r: documentation ( source)
<?php
class ThingDoer {
protected $things;
public function __construct(string $string = NULL, int $int = null, Throwable $throwable = NULL) {
$this->things[] = $string;
$this->things[] = intval($int);
$this->things[] = $throwable;
}
public function do_thing() {
print_r($this->things);
}
}
$thing = new ThingDoer();
$thing->do_thing();