Re: Beginner Tutorials for using CLASSES in PHP4

From: Date: Thu, 11 Oct 2007 02:15:16 +0000
Subject: Re: Beginner Tutorials for using CLASSES in PHP4
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-263081@lists.php.net to get a copy of this message
well i have to say i dont really see the difference between an implicit and explicit interface. the example you gave looks like it works just like the example i gave. in your example the check for the function is performed at runtime. in the example i gave the check for the interface is performed at runtime. the only difference is that in mine php does the check and in yours method_exists() does the check. if somebody wanted to do something innocuous in the lawn mower example they could try to cut a brick; that would probly bend the blades or something. -nathan

« previous php.general (#263081) next »