- Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
- Parse error: syntax error, unexpected 'moo' (T_STRING) in /in/WIWO7 on line 33
Process exited with code 255.
<?php
function test($var) {
echo "Test $var";
}
class foo {
var $arr = array("test");
/*function test($var) {
echo "Test $var";
}*/
}
class moo {
static public function test2(){
echo "test2";
}
}
$a = new foo();
var_dump($a);
$a->arr[0]("testvalue");
/***************************/
$x[0] = 'test2'
moo::$x[0]();