Mitul Dabhi
answered Nov 30 '-1 00:00
i dont know where you read it but its not correct way of defining class in php
class newclass{
var $newVar =array("i","am","good","music");
}
$new =new newclass();
echo end($new->newVar);
you can use class clause to define the class with his name
and new is keyword to define object of the class.