Na php.net:
Reading []
<?php class XmlTest { function test_ref(&$test) { $test = "ok"; } function test($test) { } function run() { $this->test_ref($ar[]); $this->test($ar[]); } } $o = new XmlTest(); $o->run(); ?>

poprawiam
---
nospor
Cytat
This should always have thrown a fatal E_ERROR, because [] cannot be used for reading in php. It is invalid code in php 4.4.2 and php 5.0.5 upward.
To jak mogę na powyższym przykładzie oddczytać dane tablicy, jeżeli nie poprzez $ar[]?