FORUM Tom's Hardware » Programmation » PHP & MySQL & ASP » Encore moi : variable static en PhP objet
 

Encore moi : variable static en PhP objet

Il y a 321 utilisateurs connus et inconnus. Pour voir la liste des connectés connus, cliquez ici
Ajouter une réponse



 Mot :   Pseudo :  
 
Bas de page
Auteur
 Sujet : Encore moi : variable static en PhP objet
 
Plus d'informations

C'est encore moi, cette fois, j'ai cree une classe :
direction.inc avec dedans :
 
  class direction {
          var $direc;
 
          function direction($var1) {
                  $this->direc = $var1;
          }
 
          static NORD = new direction("NORD" );
          static SUD = new direction("SUD" );
          static EST = new direction("EST" );
          static OUEST = new direction("OUEST" );
 
          function toString() {
                  return $this->direc;
          }
} // direction
 
comment faire pour acceder aux variable static a l'exterieur de ce fichier?

Profil : Pointeur
Plus d'informations
Plus d'informations

Merci encore, j'ai cherché, mais po trouvé, j'ai du cherché les yeux fermés


Aller à :
Ajouter une réponse
  FORUM Tom's Hardware » Programmation » PHP & MySQL & ASP » Encore moi : variable static en PhP objet
 

Annonces Google
Publicité
Les téléchargements