- print_r: documentation ( source)
<?php
class helloWorld {
public $array = array(
1 => 'hugo',
'VALUE FIRST',
'VALUE SECOND',
'VALUE THIRD',
);
}
$hello = new helloWorld();
// $hello->array[1] = 'sas';
print_r($hello->array);