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