<?php
    
class Country {
        function 
set_name($name) {
            
$this->name $name;
        }
    }

    
$jurop = new Country;
    
$dutchieland = new Country;
    
$dutchieland->set_name('The Netherlands');
    echo (int) 
$jurop"\n";
    echo (int) 
$dutchieland"\n";
?>

output:

0
1
In PHP 4 (int) $object results in: