Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class User
- {
- protected $login;
- protected $password;
- public function __construct($_POST['login'], $_POST['password'])
- {
- $login->login = $_POST['login'];
- $password->password = $_POST['password'];
- }
- public function getData()
- {
- return login;
- return password;
- }
- }
- $newUser = new User();
- $newUser->getData();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement