note 107065 deleted from language.oop5.traits by danbrown

From: Date: Fri, 06 Jan 2012 19:19:31 +0000
Subject: note 107065 deleted from language.oop5.traits by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-185419@lists.php.net to get a copy of this message
Note Submitter: Antkhan ---- bool is_a ( object $object , string $class_name ) (En) : This function will not detect if an object match a trait (Fr) : Cette fonction ne dira pas si un objet utilise un trait trait myType { } class myExample { use myType; } $test=new myExample(); var_dump($test,'myType'); // false (En) : So, how to test if an object match a trait ? (Fr) : Donc, comment savoir si un objet utilise un trait ? Tested with PHP 5.4.0 RC4

« previous php.notes (#185419) next »