Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class Logins {
- public static $user;
- public static function verificaLogin(){
- echo "O usuário ".self::$user." está logado";
- }
- public function sairSistema(){
- echo "O usuário deslogou";
- }
- }
- Logins::$user = "admin";
- Logins::verificaLogin();
- echo "<br>";
- $login = new Logins();
- $login->sairSistema();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement