This code works in PHP4:

PHP Code:
 $temp $first_instance_of_class;
 
$first_instance_of_class $second_instance_of_class;
 
$second_instance_of_class $temp
But it doesn't work on PHP5.

Is there any solution. Thanks in advance.