Why do i get an unexpected function error in this code?
<?php
class function {
function test() { $var = "test"; echo $var; }
}
$test = new function();
echo $test->test(); ?>
Mobile chat, iphone chat, android chat, chat, rooms http://www.aiochat.com