Advertisement
mvsp

aula 10

Jul 21st, 2021
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. <?php
  2.  
  3. class Login {
  4.  
  5.     public static $user;
  6.  
  7.     public static function verificaLogin(){
  8.         echo "O usuário ". self::$user." está logado!";
  9.     }
  10.  
  11.     public function sairSistema() {
  12.         echo "O usuário deslogou";
  13.     }
  14. }
  15.  
  16. Login::$user = "admin";
  17. Login::verificaLogin();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement