<?xml version="1.0" encoding="ISO-8859-1"?>
<slide fontsize="6em">
	<title>Comparing Objects</title>
	<subtitle>PHP 5</subtitle>

    <example fontsize="1.3em"><![CDATA[<?php
	class Country {
		var $area;
		function Country($area) {
			$this->area = $area;
		}
	}
	$deutschland = new Country('West Europe');
	$die_schweiz = new Country('West Europe');

	if ($deutschland == $die_schweiz) {
		echo "Deutschland ist die Schweiz.\n";
	}
	if ($deutschland === $die_schweiz) {
		echo "Deutschland ist die Schweiz.\n";
	}
?>]]></example>

<break lines="2"/>
	<blurb>In PHP 5 *$obj1 == $obj2* results in *true*:</blurb>
	<list>
		<bullet effect="hide" marginleft="2em">when the object's properties are the same</bullet>
	</list>
	<blurb>In PHP 5 *$obj1 === $obj2* results in *true*:</blurb>
	<list>
		<bullet effect="hide" marginleft="2em">when the object's *handles* are the same</bullet>
	</list>
</slide>
