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

    <example fontsize="1.3em"><![CDATA[<?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";
?>]]></example>

	<blurb fontsize="2.5em">output:</blurb>
    <example fontsize="1.3em"><![CDATA[Object id #1
Object id #2
]]></example>

<break lines="2"/>
	<blurb>In PHP 5 *(int) $object* results in:</blurb>
	<list>
		<bullet marginleft="2em">"Object id #" + Object ID</bullet>
		<bullet marginleft="2em">unless *zend.ze1_compatibility_mode = 1*</bullet>
	</list>
</slide>
