<?xml version="1.0" encoding="ISO-8859-1"?>
<slide fontsize="6em">
	<title>Casting Objects</title>
	<subtitle>PHP 4</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>
<break/>
	<blurb fontsize="2.5em">output:</blurb>
    <example fontsize="1.3em"><![CDATA[0
1]]></example>

	<blurb>In PHP 4 *(int) $object* results in:</blurb>
	<list>
		<bullet marginleft="2em">"0" when there are no properties set</bullet>
		<bullet marginleft="2em">"1" when there are properties set</bullet>
	</list>
</slide>
