Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Nous créons une classe « favoris ».
- class Favoris
- {
- private $_url;
- private $_fureteur;
- private $_statut;
- public function url()
- {
- return $this->_url;
- }
- public function statut()
- {
- return $this->_statut;
- }
- public function fureteur()
- {
- return $this->_fureteur;
- }
- public function seturl($url)
- {
- $url = (int) $url;
- }
- public function setstatut($statut)
- {
- $statut = (int) $statut;
- }
- }
- }
- $favoris = new favoris;
- $fav->afficher();
Add Comment
Please, Sign In to add comment