x=3;
$p1->y=5;
$p2=new stdclass();
$p2->x=3;
$p2->y=5;
if($p1==$p2){
echo "Samad";
} else {
echo "Erinevad";
}
echo "
";
if($p1===$p2){
echo "Samad";
} else {
echo "Erinevad";
}
echo "
";
$p1=$p2;
if($p1===$p2){
echo "Samad";
} else {
echo "Erinevad";
}
echo "
";
$p2->x=4;
echo $p1->x."
";
$p3=clone $p1;
print_r($p3);
print_r($p1);
$p1->x=2;
ech o "
";
print_r($p3);
print_r($p1);
?>