- print_r: documentation ( source)
<?php
class test{
private $options = array(1,3,4);
public function __construct(){
return array($this->optionParts(0), $this->optionsParts(2));
}
private function optionParts($num){
echo $this->options[$num];
}
}
$t = new test();
print_r($t);
//$t->optionParts(1);