Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Extraire les méthodes d’une classe avec ‘get_class_methods()’


{filelink=15053}

<?php
class Animal {
     var $nom;
     var $race;
    function setNom($nom){
      $this->nom=$nom;
    }
        function getRace($race){
	      return $this->race;
    }
    function __toString(){

    }
}

$methodes_cls = get_class_methods(Animal);
print_r($methodes_cls);
?>

No comments yet.

Leave a Comment