CakeFest 2017 NYC, the Official CakePHP Conference

Reading []

class XmlTest {

test_ref(&$test) {
$test "ok";

test($test) { }

run() {
$ar = array();

$o = new XmlTest();

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.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top