Google

Saturday, March 21, 2009

PHP classes question

1) class myclass{

}

if you run this code then what you get ?

Guesss ... answer in last


2) class parent{

$a = 2;
}

$obj_parent = parent();

if you run this code then what you get ?

Guesss ... answer in last




Answer :

1) Fatel error
2) Parent word is reserve so again Fatel error.